Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.488/2.488, allocations: 390.5 MB / 398 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 183.9 kB / 491.2 MB, free: 1.605 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.689/1.689, allocations: 221.5 MB / 0.7868 GB, free: 13.32 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009062/0.000906, allocations: 91.75 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.806e-05/1.82e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3, allocations: 143 MB / 1.212 GB, free: 39.48 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.106/1.406, allocations: 177.8 MB / 1.386 GB, free: 17.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002631/1.407, allocations: 95.61 kB / 1.386 GB, free: 17.02 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Interfaces/Source.mo:28:9-28:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.05/1.457, allocations: 25.63 MB / 1.411 GB, free: 17.19 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.733e-06/1.457, allocations: 0 / 1.411 GB, free: 17.19 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.733e-05/1.457, allocations: 8.219 kB / 1.411 GB, free: 17.18 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0009503/1.458, allocations: 0.624 MB / 1.412 GB, free: 16.54 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.458, allocations: 8.031 kB / 1.412 GB, free: 16.53 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008507/1.458, allocations: 119.4 kB / 1.412 GB, free: 16.41 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/1.459, allocations: 318.8 kB / 1.412 GB, free: 16.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/1.459, allocations: 46.47 kB / 1.412 GB, free: 16.03 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/1.459, allocations: 23.94 kB / 1.412 GB, free: 16.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004316/1.46, allocations: 318 kB / 1.413 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005719/1.46, allocations: 426 kB / 1.413 GB, free: 15.47 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/1.46, allocations: 3.938 kB / 1.413 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.428e-05/1.46, allocations: 0 / 1.413 GB, free: 15.46 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.5e-05/1.46, allocations: 32.22 kB / 1.413 GB, free: 15.44 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002706/1.463, allocations: 2.126 MB / 1.415 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/1.464, allocations: 247.7 kB / 1.415 GB, free: 13.14 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/1.464, allocations: 132.2 kB / 1.415 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/1.464, allocations: 0 / 1.415 GB, free: 13.04 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/1.464, allocations: 41.5 kB / 1.415 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=19): time 1.713e-06/1.464, allocations: 0 / 1.415 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19): time 0.0006645/1.465, allocations: 243.1 kB / 1.416 GB, free: 12.79 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/1.465, allocations: 55.39 kB / 1.416 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/1.465, allocations: 172.1 kB / 1.416 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.406e-05/1.465, allocations: 25.7 kB / 1.416 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/1.465, allocations: 214.6 kB / 1.416 GB, free: 12.35 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.988e-05/1.465, allocations: 65.78 kB / 1.416 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/1.465, allocations: 3.938 kB / 1.416 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001528/1.465, allocations: 330 kB / 1.417 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/1.466, allocations: 72.47 kB / 1.417 GB, free: 11.92 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/1.466, allocations: 164.5 kB / 1.417 GB, free: 11.75 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001519/1.466, allocations: 87.09 kB / 1.417 GB, free: 11.69 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/1.466, allocations: 0 / 1.417 GB, free: 11.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006074/1.466, allocations: 322.7 kB / 1.417 GB, free: 11.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.000421/1.467, allocations: 0.9607 MB / 1.418 GB, free: 10.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/1.467, allocations: 4 kB / 1.418 GB, free: 10.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004152/1.467, allocations: 93.08 kB / 1.418 GB, free: 10.32 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/1.468, allocations: 51.91 kB / 1.418 GB, free: 10.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/1.47, allocations: 1.964 MB / 1.42 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002923/1.47, allocations: 35.67 kB / 1.42 GB, free: 8.223 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.232e-05/1.47, allocations: 11.94 kB / 1.42 GB, free: 8.215 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/1.47, allocations: 7.938 kB / 1.42 GB, free: 8.207 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004952/1.471, allocations: 247.6 kB / 1.42 GB, free: 8.016 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/1.471, allocations: 4 kB / 1.42 GB, free: 8.012 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002453/1.471, allocations: 72.67 kB / 1.421 GB, free: 7.945 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/1.471, allocations: 59.72 kB / 1.421 GB, free: 7.891 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/1.473, allocations: 1.419 MB / 1.422 GB, free: 6.441 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/1.473, allocations: 23.83 kB / 1.422 GB, free: 6.418 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.579e-05/1.473, allocations: 11.62 kB / 1.422 GB, free: 6.41 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001208/1.473, allocations: 114.2 kB / 1.422 GB, free: 6.293 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005129/1.474, allocations: 261.6 kB / 1.422 GB, free: 6.074 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.386e-05/1.474, allocations: 15.81 kB / 1.422 GB, free: 6.059 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.759e-05/1.474, allocations: 25.41 kB / 1.422 GB, free: 6.047 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/1.474, allocations: 0 / 1.422 GB, free: 6.047 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/1.474, allocations: 0 / 1.422 GB, free: 6.047 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/1.474, allocations: 3.984 kB / 1.422 GB, free: 6.043 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001143/1.475, allocations: 0.7264 MB / 1.423 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/1.475, allocations: 4 kB / 1.423 GB, free: 5.355 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/1.475, allocations: 31.92 kB / 1.423 GB, free: 5.328 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003506/1.475, allocations: 105.3 kB / 1.423 GB, free: 5.23 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/1.475, allocations: 0 / 1.423 GB, free: 5.23 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002535/1.478, allocations: 2.679 MB / 1.426 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.478, allocations: 0 / 1.426 GB, free: 2.453 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000579/1.479, allocations: 397.9 kB / 1.426 GB, free: 2.082 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/1.479, allocations: 108.8 kB / 1.426 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.61e-05/1.479, allocations: 0 / 1.426 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/1.479, allocations: 19.84 kB / 1.426 GB, free: 1.941 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/1.479, allocations: 23.61 kB / 1.426 GB, free: 1.922 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/1.479, allocations: 11.86 kB / 1.426 GB, free: 1.914 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001258/1.479, allocations: 138.4 kB / 1.427 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.11e-07/1.479, allocations: 0 / 1.427 GB, free: 1.797 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006858/1.48, allocations: 159.3 kB / 1.427 GB, free: 1.641 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009151/1.481, allocations: 1.057 MB / 1.428 GB, free: 0.5938 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001508/1.482, allocations: 0.5726 MB / 1.428 GB, free: 88 kB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/1.482, allocations: 0 / 1.428 GB, free: 88 kB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006604/1.483, allocations: 330.2 kB / 1.429 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/1.483, allocations: 49.77 kB / 1.429 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/1.484, allocations: 478.9 kB / 1.429 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/1.485, allocations: 0.8219 MB / 1.43 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002417/1.485, allocations: 62.02 kB / 1.43 GB, free: 14.37 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/1.485, allocations: 86.91 kB / 1.43 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of SimCode: time 3.8e-07/1.485, allocations: 0 / 1.43 GB, free: 14.34 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/1.512, allocations: 5.923 MB / 1.436 GB, free: 8.465 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/1.513, allocations: 147.2 kB / 1.436 GB, free: 8.273 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/3.37, allocations: 3.938 kB / 1.436 GB, free: 8.27 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.fmu > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat does not exist to compare? outputFormat=mat