Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.422/2.422, allocations: 390.5 MB / 398 MB, free: 10.9 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.001385/0.001385, allocations: 179.8 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.676/1.676, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001292/0.001293, allocations: 87.94 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.275e-05/2.278e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3388, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.181/1.52, allocations: 152.9 MB / 1.362 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002956/1.52, allocations: 102 kB / 1.362 GB, free: 17.27 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01469/1.535, allocations: 5.406 MB / 1.367 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.583e-06/1.535, allocations: 4 kB / 1.367 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.37e-05/1.535, allocations: 11.84 kB / 1.367 GB, free: 32.66 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006769/1.536, allocations: 498.7 kB / 1.368 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/1.536, allocations: 7.688 kB / 1.368 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/1.536, allocations: 37.44 kB / 1.368 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000685/1.537, allocations: 426.1 kB / 1.368 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.461e-05/1.537, allocations: 0 / 1.368 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/1.537, allocations: 3.844 kB / 1.368 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001073/1.537, allocations: 38.94 kB / 1.368 GB, free: 31.97 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001116/1.537, allocations: 65.66 kB / 1.368 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/1.537, allocations: 4 kB / 1.368 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/1.537, allocations: 0.8438 kB / 1.368 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/1.537, allocations: 0 / 1.368 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007047/1.538, allocations: 476.5 kB / 1.369 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/1.538, allocations: 47 kB / 1.369 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.83e-05/1.538, allocations: 12.45 kB / 1.369 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/1.538, allocations: 2.719 kB / 1.369 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/1.538, allocations: 34.52 kB / 1.369 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.623e-06/1.538, allocations: 3.844 kB / 1.369 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.000216/1.538, allocations: 74.77 kB / 1.369 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.364e-05/1.538, allocations: 63.16 kB / 1.369 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006127/1.539, allocations: 486.9 kB / 1.369 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/1.539, allocations: 25.7 kB / 1.369 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/1.539, allocations: 173.9 kB / 1.369 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/1.539, allocations: 7.812 kB / 1.369 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/1.539, allocations: 0 / 1.369 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001403/1.539, allocations: 345.8 kB / 1.37 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.072e-05/1.539, allocations: 13.69 kB / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.527e-05/1.539, allocations: 6.906 kB / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.854e-05/1.539, allocations: 15.16 kB / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.539, allocations: 0 / 1.37 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001224/1.539, allocations: 77.14 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/1.539, allocations: 7.688 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/1.539, allocations: 0 / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/1.539, allocations: 7.891 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.127e-05/1.539, allocations: 10.52 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/1.539, allocations: 0 / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.575e-05/1.539, allocations: 3.812 kB / 1.37 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/1.539, allocations: 4 kB / 1.37 GB, free: 30.87 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.577e-05/1.54, allocations: 101 kB / 1.37 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001218/1.54, allocations: 81.48 kB / 1.37 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.577e-05/1.54, allocations: 35.02 kB / 1.37 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001509/1.54, allocations: 85.95 kB / 1.37 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.259e-06/1.54, allocations: 7.266 kB / 1.37 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/1.54, allocations: 0 / 1.37 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/1.54, allocations: 0 / 1.37 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/1.54, allocations: 279.7 kB / 1.371 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/1.54, allocations: 6.766 kB / 1.371 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.049e-05/1.54, allocations: 3.781 kB / 1.371 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/1.54, allocations: 3.688 kB / 1.371 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/1.54, allocations: 2.016 kB / 1.371 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/1.54, allocations: 3.953 kB / 1.371 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/1.54, allocations: 0 / 1.371 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001557/1.54, allocations: 177.8 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.7e-05/1.541, allocations: 135.4 kB / 1.371 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.406e-05/1.541, allocations: 0 / 1.371 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.449e-05/1.541, allocations: 3.812 kB / 1.371 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/1.541, allocations: 14.19 kB / 1.371 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/1.541, allocations: 3.906 kB / 1.371 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004099/1.541, allocations: 381.8 kB / 1.371 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.541, allocations: 0 / 1.371 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002757/1.541, allocations: 31.06 kB / 1.371 GB, free: 30.13 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001016/1.542, allocations: 0.9198 MB / 1.372 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.531e-05/1.543, allocations: 24.59 kB / 1.372 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/1.543, allocations: 0 / 1.372 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.514e-05/1.543, allocations: 13.84 kB / 1.372 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003241/1.543, allocations: 39.62 kB / 1.372 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008523/1.544, allocations: 479.7 kB / 1.373 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/1.544, allocations: 0.8026 MB / 1.373 GB, free: 28.47 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001267/1.544, allocations: 51.97 kB / 1.374 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/1.544, allocations: 90.03 kB / 1.374 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.544, allocations: 0 / 1.374 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/1.572, allocations: 4.783 MB / 1.378 GB, free: 28.11 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002484/1.572, allocations: 210.7 kB / 1.378 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.125/3.697, allocations: 0 / 1.378 GB, free: 27.82 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat does not exist to compare? outputFormat=mat