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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001575/0.001574, allocations: 108 kB / 15.61 MB, free: 152 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.002126/0.002126, allocations: 193.7 kB / 16.53 MB, free: 6.664 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.45/1.45, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.39/2.39, allocations: 390.2 MB / 0.6646 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 59.91 kB / 0.8125 GB, free: 14.44 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9468/0.9481, allocations: 140.4 MB / 0.9496 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003301/0.9515, allocations: 1.776 MB / 0.9513 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.9529, allocations: 0.9059 MB / 0.9522 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.953, allocations: 9.625 kB / 0.9522 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005274/0.9536, allocations: 181 kB / 0.9524 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003806/0.954, allocations: 160.5 kB / 0.9525 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004182/0.9544, allocations: 216.7 kB / 0.9527 GB, free: 6.734 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002781/0.9547, allocations: 238.4 kB / 0.953 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.9549, allocations: 59.88 kB / 0.953 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001597/0.9551, allocations: 95.14 kB / 0.9531 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.9553, allocations: 158.8 kB / 0.9533 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.9553, allocations: 19.41 kB / 0.9533 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001204/0.9555, allocations: 46.66 kB / 0.9533 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.9556, allocations: 88.75 kB / 0.9534 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.088e-05/0.9557, allocations: 111.6 kB / 0.9535 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.00035/0.956, allocations: 357.7 kB / 0.9539 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.9561, allocations: 1.438 kB / 0.9539 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.364e-06/0.9561, allocations: 0 / 0.9539 GB, free: 6.012 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.9561, allocations: 0 / 0.9539 GB, free: 6.012 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.0007745/0.9569, allocations: 0.6102 MB / 0.9545 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.9569, allocations: 10.19 kB / 0.9545 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.184e-05/0.957, allocations: 29.91 kB / 0.9545 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004784/0.9575, allocations: 410.3 kB / 0.9549 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.9575, allocations: 2.688 kB / 0.9549 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.044e-05/0.9575, allocations: 15.67 kB / 0.9549 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.9577, allocations: 80.45 kB / 0.955 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.9577, allocations: 0 / 0.955 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.9577, allocations: 5.125 kB / 0.955 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.9578, allocations: 1.281 kB / 0.955 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.9579, allocations: 48.27 kB / 0.955 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005753/0.9585, allocations: 484.2 kB / 0.9555 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.9586, allocations: 51.08 kB / 0.9556 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.111e-05/0.9587, allocations: 18.36 kB / 0.9556 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.9587, allocations: 0 / 0.9556 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.9587, allocations: 34.12 kB / 0.9556 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.9587, allocations: 0 / 0.9556 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003067/0.959, allocations: 109 kB / 0.9557 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.002e-05/0.9591, allocations: 55.41 kB / 0.9558 GB, free: 4.316 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006446/0.9597, allocations: 0.5511 MB / 0.9563 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.9598, allocations: 25.7 kB / 0.9563 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.9599, allocations: 174.1 kB / 0.9565 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.003e-05/0.9599, allocations: 9.016 kB / 0.9565 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.27e-05/0.9599, allocations: 13.62 kB / 0.9565 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.96, allocations: 344 kB / 0.9568 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.819e-05/0.9601, allocations: 10.86 kB / 0.9568 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.056e-05/0.9601, allocations: 20.34 kB / 0.9569 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.849e-05/0.9602, allocations: 41.22 kB / 0.9569 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.9602, allocations: 0 / 0.9569 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001506/0.9604, allocations: 88.92 kB / 0.957 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.9604, allocations: 6.906 kB / 0.957 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.9604, allocations: 0 / 0.957 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.9604, allocations: 4.266 kB / 0.957 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.293e-05/0.9605, allocations: 9.438 kB / 0.957 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.9605, allocations: 9.375 kB / 0.957 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.466e-05/0.9606, allocations: 5.359 kB / 0.957 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.9606, allocations: 1.375 kB / 0.957 GB, free: 3.348 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.0001528/0.9608, allocations: 180.3 kB / 0.9572 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.9609, allocations: 29.38 kB / 0.9572 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002471/0.9611, allocations: 107.9 kB / 0.9573 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.9611, allocations: 3.938 kB / 0.9573 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.9611, allocations: 4 kB / 0.9573 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.9611, allocations: 1.375 kB / 0.9573 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002607/0.9614, allocations: 281.9 kB / 0.9576 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.9614, allocations: 0.9375 kB / 0.9576 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.85e-05/0.9615, allocations: 10.11 kB / 0.9576 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.9615, allocations: 0 / 0.9576 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.9615, allocations: 1.531 kB / 0.9576 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.9615, allocations: 3.938 kB / 0.9576 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.9615, allocations: 0 / 0.9576 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.9617, allocations: 191.8 kB / 0.9578 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.472e-05/0.9618, allocations: 114.7 kB / 0.9579 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.264e-05/0.9618, allocations: 1.438 kB / 0.9579 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.9619, allocations: 5.344 kB / 0.9579 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.578e-05/0.962, allocations: 9.297 kB / 0.9579 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.962, allocations: 1.406 kB / 0.9579 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004408/0.9624, allocations: 416.5 kB / 0.9583 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9624, allocations: 1.156 kB / 0.9583 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000276/0.9627, allocations: 28.53 kB / 0.9584 GB, free: 2.277 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.0008886/0.9636, allocations: 349.7 kB / 0.9587 GB, free: 2.105 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001855/0.9638, allocations: 42.12 kB / 0.9587 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.9638, allocations: 0 / 0.9587 GB, free: 2.082 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.665e-05/0.9639, allocations: 18.34 kB / 0.9587 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004804/0.9644, allocations: 42.97 kB / 0.9588 GB, free: 2.051 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007854/0.9652, allocations: 0.502 MB / 0.9593 GB, free: 1.727 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002281/0.9654, allocations: 0.7908 MB / 0.96 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001135/0.9655, allocations: 51.89 kB / 0.9601 GB, free: 0.9453 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.505e-05/0.9656, allocations: 28.61 kB / 0.9601 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of SimCode: time 5.21e-07/0.9656, allocations: 1.125 kB / 0.9601 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of Templates: time 0.006107/0.9717, allocations: 2.462 MB / 0.9625 GB, free: 15.73 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