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.0008235/0.0008236, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 178.6 kB / 16.92 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.3 MB / 241 MB, free: 5.289 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.491/2.491, allocations: 390.9 MB / 0.667 GB, free: 2.406 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004136/0.0004137, allocations: 12 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8487/0.8492, allocations: 142.4 MB / 0.9557 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002007/0.8512, allocations: 1.479 MB / 0.9572 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001287/0.8525, allocations: 0.8896 MB / 0.958 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.627e-05/0.8526, allocations: 1.156 kB / 0.958 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004817/0.8531, allocations: 169.9 kB / 0.9582 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.8535, allocations: 141 kB / 0.9583 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004793/0.854, allocations: 200.1 kB / 0.9585 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.8543, allocations: 222.1 kB / 0.9587 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.8545, allocations: 50.2 kB / 0.9588 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001596/0.8546, allocations: 83.45 kB / 0.9589 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.8548, allocations: 133.8 kB / 0.959 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.108e-05/0.8549, allocations: 5.344 kB / 0.959 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.969e-05/0.855, allocations: 36.83 kB / 0.959 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001034/0.8551, allocations: 73.09 kB / 0.9591 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001054/0.8552, allocations: 119.8 kB / 0.9592 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.8556, allocations: 291.4 kB / 0.9595 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.8556, allocations: 3.938 kB / 0.9595 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.567e-06/0.8556, allocations: 0 / 0.9595 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.8556, allocations: 0 / 0.9595 GB, free: 4.887 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.0007515/0.8563, allocations: 0.5595 MB / 0.96 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.8564, allocations: 13.56 kB / 0.96 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.324e-05/0.8565, allocations: 30.31 kB / 0.9601 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.8569, allocations: 415.8 kB / 0.9605 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.857, allocations: 13.69 kB / 0.9605 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.654e-05/0.857, allocations: 8.25 kB / 0.9605 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.8572, allocations: 74.42 kB / 0.9606 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.8572, allocations: 3.984 kB / 0.9606 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.8572, allocations: 4 kB / 0.9606 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.8572, allocations: 1.375 kB / 0.9606 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.8574, allocations: 52.78 kB / 0.9606 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005225/0.8579, allocations: 474.2 kB / 0.9611 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001264/0.858, allocations: 59.11 kB / 0.9611 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.289e-05/0.8581, allocations: 18.48 kB / 0.9612 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.66e-05/0.8581, allocations: 1.375 kB / 0.9612 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.607e-05/0.8581, allocations: 35.92 kB / 0.9612 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.103e-06/0.8582, allocations: 0 / 0.9612 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002807/0.8584, allocations: 115.8 kB / 0.9613 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.8585, allocations: 52.78 kB / 0.9613 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006655/0.8591, allocations: 0.5494 MB / 0.9619 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.8592, allocations: 26.55 kB / 0.9619 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.8593, allocations: 174.2 kB / 0.9621 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.8593, allocations: 12.86 kB / 0.9621 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.189e-05/0.8593, allocations: 15.48 kB / 0.9621 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.742e-05/0.8594, allocations: 344.2 kB / 0.9624 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.396e-05/0.8595, allocations: 17.52 kB / 0.9624 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.382e-05/0.8595, allocations: 21.09 kB / 0.9625 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.625e-05/0.8596, allocations: 36.62 kB / 0.9625 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.8596, allocations: 5 kB / 0.9625 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000162/0.8598, allocations: 96.36 kB / 0.9626 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.8598, allocations: 4.906 kB / 0.9626 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.8598, allocations: 0 / 0.9626 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.649e-05/0.8599, allocations: 4.938 kB / 0.9626 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.514e-05/0.8599, allocations: 6.656 kB / 0.9626 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.86, allocations: 0 / 0.9626 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.427e-05/0.86, allocations: 7.641 kB / 0.9626 GB, free: 2.258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.86, allocations: 5.438 kB / 0.9626 GB, free: 2.254 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001333/0.8602, allocations: 175.3 kB / 0.9628 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.238e-05/0.8602, allocations: 28.59 kB / 0.9628 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002145/0.8605, allocations: 108.9 kB / 0.9629 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.8605, allocations: 3.938 kB / 0.9629 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.8605, allocations: 3.938 kB / 0.9629 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.8605, allocations: 5.188 kB / 0.9629 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.8607, allocations: 283.2 kB / 0.9632 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.8607, allocations: 0 / 0.9632 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.04e-05/0.8608, allocations: 10.45 kB / 0.9632 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.8608, allocations: 0 / 0.9632 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.8608, allocations: 1.062 kB / 0.9632 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.8608, allocations: 5.219 kB / 0.9632 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.8608, allocations: 0 / 0.9632 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001965/0.861, allocations: 191.8 kB / 0.9634 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 8.564e-05/0.8611, allocations: 122.9 kB / 0.9635 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.8612, allocations: 0.9062 kB / 0.9635 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.13e-05/0.8613, allocations: 11.14 kB / 0.9635 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.8613, allocations: 1.125 kB / 0.9635 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.8613, allocations: 1.094 kB / 0.9635 GB, free: 1.418 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004439/0.8618, allocations: 417.2 kB / 0.9639 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8618, allocations: 7.938 kB / 0.9639 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002675/0.862, allocations: 25.95 kB / 0.964 GB, free: 1.188 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008478/0.8629, allocations: 364.5 kB / 0.9643 GB, free: 1 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001491/0.8631, allocations: 38.28 kB / 0.9644 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.8631, allocations: 0 / 0.9644 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.488e-05/0.8631, allocations: 19.98 kB / 0.9644 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004185/0.8636, allocations: 41.05 kB / 0.9644 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007895/0.8644, allocations: 0.6242 MB / 0.965 GB, free: 0.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.8647, allocations: 0.7867 MB / 0.9658 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.397e-05/0.8648, allocations: 26.08 kB / 0.9658 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of SimCode: time 2.61e-07/0.8648, allocations: 0 / 0.9658 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of Templates: time 0.006469/0.8712, allocations: 3.491 MB / 0.9692 GB, free: 13.96 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/jenkins1/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