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.278/2.278, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.00129/0.00129, allocations: 172.9 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.786/1.786, allocations: 221.3 MB / 0.7915 GB, free: 5.391 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.0009089/0.0009089, allocations: 95.69 kB / 0.9317 GB, free: 5.711 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.467e-05/4.471e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3615/0.3615, allocations: 143 MB / 1.219 GB, free: 13.41 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.164/1.526, allocations: 153.6 MB / 1.369 GB, free: 0.4922 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003721/1.526, allocations: 97 kB / 1.369 GB, free: 448 kB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01582/1.542, allocations: 5.479 MB / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.774e-06/1.542, allocations: 0 / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.984e-05/1.542, allocations: 8 kB / 1.374 GB, free: 11.8 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.0006893/1.543, allocations: 499.2 kB / 1.375 GB, free: 11.28 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/1.543, allocations: 12.03 kB / 1.375 GB, free: 11.27 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.498e-05/1.543, allocations: 34 kB / 1.375 GB, free: 11.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.2e-05/1.543, allocations: 39.58 kB / 1.375 GB, free: 11.19 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000702/1.544, allocations: 423.7 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/1.544, allocations: 0 / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/1.544, allocations: 7.938 kB / 1.375 GB, free: 10.8 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/1.544, allocations: 70.36 kB / 1.375 GB, free: 10.74 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/1.544, allocations: 0 / 1.375 GB, free: 10.74 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/1.544, allocations: 4 kB / 1.375 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/1.544, allocations: 0 / 1.375 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.461e-05/1.544, allocations: 42.17 kB / 1.375 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007456/1.545, allocations: 0.4982 MB / 1.376 GB, free: 10.24 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/1.545, allocations: 41.83 kB / 1.376 GB, free: 10.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.419e-05/1.545, allocations: 26.45 kB / 1.376 GB, free: 10.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/1.545, allocations: 4 kB / 1.376 GB, free: 10.17 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/1.545, allocations: 34.56 kB / 1.376 GB, free: 10.13 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/1.545, allocations: 0 / 1.376 GB, free: 10.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0002094/1.545, allocations: 76.19 kB / 1.376 GB, free: 10.05 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.349e-05/1.545, allocations: 51.52 kB / 1.376 GB, free: 9.992 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006357/1.546, allocations: 0.4977 MB / 1.377 GB, free: 9.605 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/1.546, allocations: 25.7 kB / 1.377 GB, free: 9.574 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/1.546, allocations: 179.1 kB / 1.377 GB, free: 9.453 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.176e-05/1.546, allocations: 11.81 kB / 1.377 GB, free: 9.441 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/1.546, allocations: 0 / 1.377 GB, free: 9.441 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.00017/1.547, allocations: 342.7 kB / 1.377 GB, free: 9.109 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.546e-05/1.547, allocations: 11.23 kB / 1.377 GB, free: 9.102 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.903e-05/1.547, allocations: 7.25 kB / 1.377 GB, free: 9.098 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.911e-05/1.547, allocations: 11 kB / 1.377 GB, free: 9.09 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/1.547, allocations: 0 / 1.377 GB, free: 9.09 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001263/1.547, allocations: 75.59 kB / 1.377 GB, free: 9.016 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/1.547, allocations: 7.953 kB / 1.377 GB, free: 9.008 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/1.547, allocations: 0 / 1.377 GB, free: 9.008 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/1.547, allocations: 4 kB / 1.377 GB, free: 9.004 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.402e-05/1.547, allocations: 11.98 kB / 1.377 GB, free: 8.992 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/1.547, allocations: 3.938 kB / 1.377 GB, free: 8.988 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.955e-05/1.547, allocations: 10.91 kB / 1.377 GB, free: 8.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/1.547, allocations: 0 / 1.377 GB, free: 8.98 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 0.0001009/1.547, allocations: 102.1 kB / 1.377 GB, free: 8.875 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/1.547, allocations: 35.61 kB / 1.377 GB, free: 8.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000257/1.547, allocations: 91.42 kB / 1.377 GB, free: 8.758 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/1.548, allocations: 4 kB / 1.377 GB, free: 8.754 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/1.548, allocations: 4 kB / 1.377 GB, free: 8.75 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/1.548, allocations: 3.984 kB / 1.377 GB, free: 8.746 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003574/1.548, allocations: 304.9 kB / 1.378 GB, free: 8.449 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/1.548, allocations: 0 / 1.378 GB, free: 8.449 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.125e-05/1.548, allocations: 7.984 kB / 1.378 GB, free: 8.441 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/1.548, allocations: 4 kB / 1.378 GB, free: 8.438 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/1.548, allocations: 0 / 1.378 GB, free: 8.438 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/1.548, allocations: 7.891 kB / 1.378 GB, free: 8.43 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/1.548, allocations: 4 kB / 1.378 GB, free: 8.426 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/1.548, allocations: 172.9 kB / 1.378 GB, free: 8.25 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001548/1.548, allocations: 135.7 kB / 1.378 GB, free: 8.109 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.493e-05/1.548, allocations: 7.625 kB / 1.378 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.098e-05/1.549, allocations: 0 / 1.378 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.65e-05/1.549, allocations: 11.94 kB / 1.378 GB, free: 8.094 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/1.549, allocations: 7.875 kB / 1.378 GB, free: 8.086 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0004794/1.549, allocations: 402.4 kB / 1.378 GB, free: 7.789 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.549, allocations: 0 / 1.378 GB, free: 7.789 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002684/1.549, allocations: 38.92 kB / 1.378 GB, free: 7.754 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.00123/1.551, allocations: 0.9237 MB / 1.379 GB, free: 6.918 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 9.343e-05/1.551, allocations: 18.62 kB / 1.379 GB, free: 6.906 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.551, allocations: 4 kB / 1.379 GB, free: 6.902 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.19e-05/1.551, allocations: 19.48 kB / 1.379 GB, free: 6.887 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003095/1.551, allocations: 40.81 kB / 1.379 GB, free: 6.863 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009511/1.552, allocations: 492.3 kB / 1.38 GB, free: 6.414 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004543/1.553, allocations: 0.7887 MB / 1.381 GB, free: 5.617 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001173/1.553, allocations: 53.98 kB / 1.381 GB, free: 5.566 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/1.553, allocations: 93.62 kB / 1.381 GB, free: 5.531 MB / 0.8386 GB Notification: Performance of SimCode: time 4.31e-07/1.553, allocations: 0 / 1.381 GB, free: 5.531 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/1.573, allocations: 5.486 MB / 1.386 GB, free: 260 kB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000236/1.574, allocations: 233.7 kB / 1.386 GB, free: 8 kB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.207/3.78, allocations: 0 / 1.386 GB, free: 8 kB / 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