Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.229/2.229, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001084/0.001084, allocations: 177.1 kB / 498.1 MB, free: 5.727 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.448/1.448, allocations: 223.1 MB / 0.7948 GB, free: 17.87 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.0008792/0.0008793, allocations: 108.2 kB / 0.9346 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003324, allocations: 17.12 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2684, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.4491, allocations: 152.8 MB / 1.372 GB, free: 9.176 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.4494, allocations: 99.92 kB / 1.372 GB, free: 9.078 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01436/0.4638, allocations: 5.489 MB / 1.378 GB, free: 3.578 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.974e-06/0.4638, allocations: 0 / 1.378 GB, free: 3.578 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.235e-05/0.4639, allocations: 7.984 kB / 1.378 GB, free: 3.57 MB / 0.8698 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.0008385/0.4647, allocations: 0.5873 MB / 1.378 GB, free: 2.934 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.4648, allocations: 12.03 kB / 1.378 GB, free: 2.922 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.896e-05/0.4648, allocations: 38.55 kB / 1.378 GB, free: 2.875 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.277e-05/0.4649, allocations: 35.58 kB / 1.378 GB, free: 2.84 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007203/0.4656, allocations: 417.3 kB / 1.379 GB, free: 2.395 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.4657, allocations: 4 kB / 1.379 GB, free: 2.391 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.781e-05/0.4657, allocations: 11.92 kB / 1.379 GB, free: 2.379 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001873/0.4659, allocations: 81.66 kB / 1.379 GB, free: 2.293 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.4659, allocations: 4 kB / 1.379 GB, free: 2.289 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.144e-05/0.4659, allocations: 3.938 kB / 1.379 GB, free: 2.285 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.4659, allocations: 0 / 1.379 GB, free: 2.285 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.4661, allocations: 51.97 kB / 1.379 GB, free: 2.234 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007877/0.4669, allocations: 0.4965 MB / 1.379 GB, free: 1.688 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.467, allocations: 50.66 kB / 1.379 GB, free: 1.629 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.4671, allocations: 7.938 kB / 1.379 GB, free: 1.621 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.4671, allocations: 34.5 kB / 1.379 GB, free: 1.578 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.333e-06/0.4671, allocations: 4 kB / 1.379 GB, free: 1.574 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0003827/0.4675, allocations: 101.4 kB / 1.38 GB, free: 1.469 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.4676, allocations: 51.41 kB / 1.38 GB, free: 1.406 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007172/0.4683, allocations: 0.5047 MB / 1.38 GB, free: 0.8945 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.582e-05/0.4683, allocations: 25.7 kB / 1.38 GB, free: 0.8633 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.4685, allocations: 168 kB / 1.38 GB, free: 0.6953 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.415e-05/0.4685, allocations: 19.89 kB / 1.38 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.4685, allocations: 0 / 1.38 GB, free: 0.6758 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001769/0.4687, allocations: 338.8 kB / 1.381 GB, free: 344 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.644e-05/0.4687, allocations: 15.98 kB / 1.381 GB, free: 328 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.126e-05/0.4688, allocations: 16 kB / 1.381 GB, free: 312 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.378e-05/0.4689, allocations: 15.92 kB / 1.381 GB, free: 296 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4689, allocations: 3.938 kB / 1.381 GB, free: 292 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001869/0.4691, allocations: 97.3 kB / 1.381 GB, free: 188 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.4691, allocations: 7.953 kB / 1.381 GB, free: 180 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.4691, allocations: 4 kB / 1.381 GB, free: 176 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.4691, allocations: 0 / 1.381 GB, free: 176 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.047e-05/0.4692, allocations: 7.984 kB / 1.381 GB, free: 168 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.4692, allocations: 0 / 1.381 GB, free: 168 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.924e-05/0.4693, allocations: 4 kB / 1.381 GB, free: 164 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.4693, allocations: 8 kB / 1.381 GB, free: 156 kB / 0.8698 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 () * Number of clocked 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 0.0002015/0.4695, allocations: 177.9 kB / 1.381 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.713e-05/0.4696, allocations: 35.56 kB / 1.381 GB, free: 15.93 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003001/0.4699, allocations: 112.4 kB / 1.381 GB, free: 15.81 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.4699, allocations: 4 kB / 1.381 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.47, allocations: 0 / 1.381 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.47, allocations: 0 / 1.381 GB, free: 15.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003014/0.4703, allocations: 313.4 kB / 1.381 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4703, allocations: 0 / 1.381 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.195e-05/0.4703, allocations: 8 kB / 1.381 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.4703, allocations: 0 / 1.381 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.4704, allocations: 0 / 1.381 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.4704, allocations: 3.953 kB / 1.381 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4704, allocations: 3.984 kB / 1.381 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.4706, allocations: 191.1 kB / 1.382 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.4708, allocations: 132.8 kB / 1.382 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.4708, allocations: 0 / 1.382 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.539e-05/0.4709, allocations: 8 kB / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.4709, allocations: 7.938 kB / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.127e-06/0.471, allocations: 0 / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0004632/0.4714, allocations: 407.1 kB / 1.382 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.01e-07/0.4714, allocations: 0 / 1.382 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002802/0.4717, allocations: 43.91 kB / 1.382 GB, free: 14.63 MB / 0.8855 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 () * Number of clocked 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.001191/0.4729, allocations: 0.9774 MB / 1.383 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001509/0.4731, allocations: 39.91 kB / 1.383 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4731, allocations: 0 / 1.383 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.84e-05/0.4732, allocations: 20 kB / 1.383 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.4735, allocations: 49.61 kB / 1.383 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002857/0.4763, allocations: 1.899 MB / 1.385 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.4767, allocations: 0.7911 MB / 1.386 GB, free: 10.88 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001277/0.4769, allocations: 53.92 kB / 1.386 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.477, allocations: 87.39 kB / 1.386 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of SimCode: time 3.41e-07/0.477, allocations: 0 / 1.386 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/0.495, allocations: 5.631 MB / 1.391 GB, free: 5.293 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001933/0.4953, allocations: 255.3 kB / 1.392 GB, free: 4.957 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.978/2.474, allocations: 0 / 1.392 GB, free: 4.957 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat does not exist to compare? outputFormat=mat