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.201/2.201, allocations: 387.1 MB / 399.7 MB, free: 9.477 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.0009937/0.0009938, allocations: 172.1 kB / 492.3 MB, free: 0.6055 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.383/1.383, allocations: 221.3 MB / 0.7871 GB, free: 12.95 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.0008759/0.0008759, allocations: 93.83 kB / 0.9267 GB, free: 14.02 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.503e-05/3.505e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2278/0.2278, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7774/1.005, allocations: 152.8 MB / 1.362 GB, free: 18.94 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001967/1.006, allocations: 97.25 kB / 1.362 GB, free: 18.94 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01259/1.018, allocations: 5.471 MB / 1.367 GB, free: 34.33 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.122e-06/1.018, allocations: 0 / 1.367 GB, free: 34.33 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.58e-05/1.018, allocations: 7.812 kB / 1.367 GB, free: 34.33 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.0003585/1.019, allocations: 0.4998 MB / 1.368 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/1.019, allocations: 11.78 kB / 1.368 GB, free: 33.89 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.991e-05/1.019, allocations: 33.56 kB / 1.368 GB, free: 33.85 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.063e-05/1.019, allocations: 34.97 kB / 1.368 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005163/1.019, allocations: 419.7 kB / 1.368 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/1.019, allocations: 7.969 kB / 1.368 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.173e-05/1.019, allocations: 7.188 kB / 1.368 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/1.019, allocations: 74.88 kB / 1.368 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/1.019, allocations: 0 / 1.368 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/1.019, allocations: 3.938 kB / 1.368 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/1.019, allocations: 3.812 kB / 1.368 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.856e-05/1.019, allocations: 41.11 kB / 1.368 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/1.02, allocations: 0.4901 MB / 1.369 GB, free: 33.27 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.539e-05/1.02, allocations: 40.3 kB / 1.369 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.503e-05/1.02, allocations: 16.45 kB / 1.369 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/1.02, allocations: 7.469 kB / 1.369 GB, free: 33.23 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.09e-05/1.02, allocations: 38.45 kB / 1.369 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/1.02, allocations: 0 / 1.369 GB, free: 33.19 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001598/1.02, allocations: 84.19 kB / 1.369 GB, free: 33.14 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.737e-05/1.02, allocations: 51.41 kB / 1.369 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/1.021, allocations: 0.4916 MB / 1.369 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.706e-06/1.021, allocations: 25.7 kB / 1.369 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.286e-05/1.021, allocations: 181.4 kB / 1.37 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/1.021, allocations: 7.812 kB / 1.37 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/1.021, allocations: 0 / 1.37 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 8.81e-05/1.021, allocations: 347.3 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.995e-05/1.021, allocations: 7.078 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.607e-05/1.021, allocations: 11.56 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.433e-05/1.021, allocations: 7.828 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/1.021, allocations: 3.938 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.973e-05/1.021, allocations: 85.88 kB / 1.37 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/1.021, allocations: 7.812 kB / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/1.021, allocations: 3.953 kB / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/1.021, allocations: 3.844 kB / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.853e-05/1.021, allocations: 6.859 kB / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/1.021, allocations: 0 / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.627e-05/1.021, allocations: 3.875 kB / 1.37 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.772e-06/1.021, allocations: 3.844 kB / 1.37 GB, free: 32.46 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 5.306e-05/1.022, allocations: 101 kB / 1.37 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.923e-05/1.022, allocations: 35 kB / 1.37 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/1.022, allocations: 93.95 kB / 1.37 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/1.022, allocations: 3.953 kB / 1.37 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/1.022, allocations: 0 / 1.37 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/1.022, allocations: 240 / 1.37 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002019/1.022, allocations: 306.3 kB / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/1.022, allocations: 2.766 kB / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.888e-05/1.022, allocations: 11.77 kB / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/1.022, allocations: 0 / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/1.022, allocations: 3.75 kB / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/1.022, allocations: 6.578 kB / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/1.022, allocations: 3.953 kB / 1.371 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000126/1.022, allocations: 175.6 kB / 1.371 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.875e-05/1.022, allocations: 129.3 kB / 1.371 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.134e-05/1.022, allocations: 3.875 kB / 1.371 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.67e-05/1.022, allocations: 3.969 kB / 1.371 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.954e-05/1.022, allocations: 10.38 kB / 1.371 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-06/1.023, allocations: 8 kB / 1.371 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0003656/1.023, allocations: 401.2 kB / 1.371 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.9e-07/1.023, allocations: 3.938 kB / 1.371 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002403/1.023, allocations: 37.73 kB / 1.371 GB, free: 31.72 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.0008903/1.024, allocations: 0.9289 MB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.759e-05/1.024, allocations: 25.55 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/1.024, allocations: 0 / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.357e-05/1.024, allocations: 14.2 kB / 1.372 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/1.024, allocations: 38.5 kB / 1.372 GB, free: 30.96 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006732/1.025, allocations: 0.4884 MB / 1.373 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/1.025, allocations: 0.7922 MB / 1.374 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001006/1.026, allocations: 55.2 kB / 1.374 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/1.026, allocations: 86.56 kB / 1.374 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of SimCode: time 4.91e-07/1.026, allocations: 0 / 1.374 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01408/1.04, allocations: 5.477 MB / 1.379 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/1.04, allocations: 233.3 kB / 1.379 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.999, allocations: 0 / 1.379 GB, free: 29.37 MB / 0.8386 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