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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 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.3 MB / 240 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.559/2.559, allocations: 390.9 MB / 0.666 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000492/0.0004921, allocations: 8 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7704/0.7709, allocations: 142.4 MB / 0.9544 GB, free: 7.953 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001981/0.773, allocations: 1.446 MB / 0.9559 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001284/0.7743, allocations: 0.851 MB / 0.9567 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.009e-05/0.7744, allocations: 4.938 kB / 0.9567 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004842/0.7749, allocations: 152 kB / 0.9568 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003004/0.7752, allocations: 133.8 kB / 0.957 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003909/0.7756, allocations: 182.7 kB / 0.9571 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002448/0.7758, allocations: 205 kB / 0.9573 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.776, allocations: 35.91 kB / 0.9574 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001312/0.7761, allocations: 79.95 kB / 0.9574 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.7763, allocations: 132.4 kB / 0.9576 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.778e-05/0.7763, allocations: 9.875 kB / 0.9576 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.231e-05/0.7764, allocations: 27.89 kB / 0.9576 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.435e-05/0.7765, allocations: 71.41 kB / 0.9577 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.229e-05/0.7766, allocations: 60.89 kB / 0.9577 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.7768, allocations: 289.5 kB / 0.958 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.7768, allocations: 1.812 kB / 0.958 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7768, allocations: 3.938 kB / 0.958 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.7769, allocations: 0 / 0.958 GB, free: 5.332 MB / 0.7169 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.0005866/0.7774, allocations: 0.5626 MB / 0.9586 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.7775, allocations: 13.62 kB / 0.9586 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.864e-05/0.7776, allocations: 33.33 kB / 0.9586 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004496/0.778, allocations: 397.6 kB / 0.959 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.18e-05/0.778, allocations: 6.734 kB / 0.959 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.7781, allocations: 4.125 kB / 0.959 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/0.7782, allocations: 80.97 kB / 0.9591 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.7782, allocations: 3.938 kB / 0.9591 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.7783, allocations: 5.375 kB / 0.9591 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.7783, allocations: 1.375 kB / 0.9591 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001192/0.7784, allocations: 59.42 kB / 0.9591 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005112/0.7789, allocations: 479.4 kB / 0.9596 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.779, allocations: 57.75 kB / 0.9597 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.138e-05/0.7791, allocations: 18.48 kB / 0.9597 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.646e-05/0.7791, allocations: 5.359 kB / 0.9597 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.822e-05/0.7792, allocations: 31.94 kB / 0.9597 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.283e-06/0.7792, allocations: 0 / 0.9597 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002782/0.7794, allocations: 108.6 kB / 0.9598 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.7795, allocations: 51.41 kB / 0.9599 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000657/0.7801, allocations: 0.5551 MB / 0.9604 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.315e-06/0.7802, allocations: 25.7 kB / 0.9604 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.7803, allocations: 174.3 kB / 0.9606 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.7803, allocations: 5.875 kB / 0.9606 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.38e-06/0.7803, allocations: 4 kB / 0.9606 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.014e-05/0.7804, allocations: 349 kB / 0.9609 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.715e-05/0.7804, allocations: 8.344 kB / 0.9609 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.044e-05/0.7805, allocations: 18.11 kB / 0.961 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.051e-05/0.7805, allocations: 17.3 kB / 0.961 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.7806, allocations: 0 / 0.961 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001597/0.7807, allocations: 105.3 kB / 0.9611 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.7807, allocations: 4.312 kB / 0.9611 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.7808, allocations: 0.8438 kB / 0.9611 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.7808, allocations: 112 / 0.9611 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.69e-05/0.7809, allocations: 10.94 kB / 0.9611 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.7809, allocations: 0 / 0.9611 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.979e-05/0.7809, allocations: 8 kB / 0.9611 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.7809, allocations: 1 kB / 0.9611 GB, free: 2.746 MB / 0.7169 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.0001531/0.7811, allocations: 192.5 kB / 0.9613 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.996e-05/0.7812, allocations: 31.58 kB / 0.9613 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002136/0.7814, allocations: 111.9 kB / 0.9614 GB, free: 2.48 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.7814, allocations: 4.969 kB / 0.9614 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.7814, allocations: 0 / 0.9614 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.7814, allocations: 1.188 kB / 0.9614 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002444/0.7817, allocations: 278.1 kB / 0.9617 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.7817, allocations: 1.031 kB / 0.9617 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.7817, allocations: 14.08 kB / 0.9617 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.7817, allocations: 4.859 kB / 0.9617 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-06/0.7817, allocations: 1.188 kB / 0.9617 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.7817, allocations: 0 / 0.9617 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.7818, allocations: 0 / 0.9617 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.7819, allocations: 188 kB / 0.9619 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.579e-05/0.782, allocations: 123 kB / 0.962 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.067e-05/0.7821, allocations: 5.109 kB / 0.962 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.561e-05/0.7822, allocations: 6.266 kB / 0.962 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.376e-05/0.7822, allocations: 2.5 kB / 0.962 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.7822, allocations: 4.875 kB / 0.962 GB, free: 1.895 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004257/0.7826, allocations: 418.2 kB / 0.9624 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7826, allocations: 0 / 0.9624 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002675/0.7829, allocations: 36.94 kB / 0.9625 GB, free: 1.656 MB / 0.7169 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.0007966/0.7837, allocations: 355.8 kB / 0.9628 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001577/0.7839, allocations: 40.88 kB / 0.9628 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.7839, allocations: 1.312 kB / 0.9628 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.137e-05/0.784, allocations: 11.41 kB / 0.9629 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.7844, allocations: 44 kB / 0.9629 GB, free: 1.434 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007853/0.7852, allocations: 0.5489 MB / 0.9634 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002295/0.7854, allocations: 0.787 MB / 0.9642 GB, free: 312 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001081/0.7855, allocations: 57.3 kB / 0.9643 GB, free: 288 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.677e-05/0.7856, allocations: 20.09 kB / 0.9643 GB, free: 280 kB / 0.7169 GB Notification: Performance of SimCode: time 3.3e-07/0.7856, allocations: 0 / 0.9643 GB, free: 280 kB / 0.7169 GB Notification: Performance of Templates: time 0.006329/0.7919, allocations: 2.282 MB / 0.9665 GB, free: 15.16 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (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 & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches