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.00173/0.00173, allocations: 102.7 kB / 15.99 MB, free: 5.891 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.002077/0.002077, allocations: 192.7 kB / 16.91 MB, free: 5.746 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.446/1.446, allocations: 222.9 MB / 240.6 MB, free: 4.438 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.399/2.399, allocations: 390.2 MB / 0.665 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 71.89 kB / 0.8127 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6953/0.6968, allocations: 140.3 MB / 0.9498 GB, free: 9.309 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003234/0.7001, allocations: 1.838 MB / 0.9516 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001159/0.7013, allocations: 0.8957 MB / 0.9524 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.631e-05/0.7014, allocations: 5.312 kB / 0.9524 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000489/0.7019, allocations: 171.1 kB / 0.9526 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.7022, allocations: 155.5 kB / 0.9528 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.7026, allocations: 187.3 kB / 0.9529 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.7028, allocations: 241.4 kB / 0.9532 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.703, allocations: 59.3 kB / 0.9532 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.7031, allocations: 95.64 kB / 0.9533 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001676/0.7033, allocations: 159.2 kB / 0.9535 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.7033, allocations: 18.16 kB / 0.9535 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.873e-05/0.7034, allocations: 44.31 kB / 0.9535 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.432e-05/0.7035, allocations: 92.59 kB / 0.9536 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.423e-05/0.7036, allocations: 111.6 kB / 0.9537 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002387/0.7038, allocations: 309.9 kB / 0.954 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.7038, allocations: 0 / 0.954 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.243e-06/0.7039, allocations: 0 / 0.954 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.7039, allocations: 1.406 kB / 0.954 GB, free: 6.168 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.0006247/0.7045, allocations: 0.5903 MB / 0.9546 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.7045, allocations: 9.031 kB / 0.9546 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.7046, allocations: 35.16 kB / 0.9546 GB, free: 5.598 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/0.705, allocations: 418.6 kB / 0.955 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.705, allocations: 10.56 kB / 0.955 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.705, allocations: 11.03 kB / 0.9551 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001467/0.7052, allocations: 69.08 kB / 0.9551 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.7052, allocations: 4 kB / 0.9551 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.7052, allocations: 4 kB / 0.9551 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.7052, allocations: 2.375 kB / 0.9551 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001166/0.7054, allocations: 44.5 kB / 0.9552 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004671/0.7058, allocations: 486.7 kB / 0.9556 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.706, allocations: 53.25 kB / 0.9557 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.575e-05/0.706, allocations: 15.53 kB / 0.9557 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.706, allocations: 9.109 kB / 0.9557 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.466e-05/0.7061, allocations: 39.66 kB / 0.9557 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.7061, allocations: 0 / 0.9557 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002496/0.7063, allocations: 107.6 kB / 0.9559 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.265e-05/0.7063, allocations: 52.56 kB / 0.9559 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.7069, allocations: 0.5537 MB / 0.9564 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.325e-06/0.7069, allocations: 25.7 kB / 0.9565 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.384e-05/0.707, allocations: 170.4 kB / 0.9566 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.663e-05/0.707, allocations: 13.38 kB / 0.9566 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.83e-05/0.707, allocations: 20.7 kB / 0.9567 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.441e-05/0.7071, allocations: 341.5 kB / 0.957 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.472e-05/0.7072, allocations: 15.42 kB / 0.957 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.538e-05/0.7072, allocations: 11.19 kB / 0.957 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.702e-05/0.7073, allocations: 41.17 kB / 0.9571 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.7073, allocations: 0 / 0.9571 GB, free: 3.586 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001347/0.7074, allocations: 89.55 kB / 0.9571 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.7074, allocations: 8.156 kB / 0.9571 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.7075, allocations: 0 / 0.9571 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.7075, allocations: 6.219 kB / 0.9572 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.845e-05/0.7075, allocations: 4.688 kB / 0.9572 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.7076, allocations: 0 / 0.9572 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.03e-05/0.7076, allocations: 6.672 kB / 0.9572 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.7076, allocations: 1.344 kB / 0.9572 GB, free: 3.512 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.0001121/0.7077, allocations: 179.9 kB / 0.9573 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.7078, allocations: 28 kB / 0.9574 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001815/0.708, allocations: 103.9 kB / 0.9575 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.708, allocations: 5.312 kB / 0.9575 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.708, allocations: 0 / 0.9575 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.708, allocations: 1.375 kB / 0.9575 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.7082, allocations: 285.9 kB / 0.9577 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.7082, allocations: 0.9688 kB / 0.9577 GB, free: 2.984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.693e-05/0.7083, allocations: 9.641 kB / 0.9577 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.7083, allocations: 0 / 0.9577 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.7083, allocations: 1.125 kB / 0.9578 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.7083, allocations: 7.938 kB / 0.9578 GB, free: 2.973 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.7083, allocations: 5.234 kB / 0.9578 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001629/0.7085, allocations: 183.1 kB / 0.9579 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.9e-05/0.7086, allocations: 118.8 kB / 0.9581 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.7086, allocations: 1.062 kB / 0.9581 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.877e-05/0.7087, allocations: 9.656 kB / 0.9581 GB, free: 2.676 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.619e-05/0.7087, allocations: 5.156 kB / 0.9581 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.7087, allocations: 9.328 kB / 0.9581 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003903/0.7091, allocations: 417.8 kB / 0.9585 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.82e-07/0.7091, allocations: 0 / 0.9585 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002515/0.7094, allocations: 32.12 kB / 0.9585 GB, free: 2.434 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.0007507/0.7102, allocations: 365.9 kB / 0.9589 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001439/0.7103, allocations: 34.52 kB / 0.9589 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7103, allocations: 0 / 0.9589 GB, free: 2.234 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.058e-05/0.7104, allocations: 14.73 kB / 0.9589 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005908/0.711, allocations: 50.69 kB / 0.9589 GB, free: 2.199 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007273/0.7117, allocations: 0.6041 MB / 0.9595 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.7119, allocations: 0.7905 MB / 0.9603 GB, free: 1.012 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.316e-05/0.712, allocations: 25.75 kB / 0.9603 GB, free: 1 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.712, allocations: 0 / 0.9603 GB, free: 1 MB / 0.7169 GB Notification: Performance of Templates: time 0.005314/0.7173, allocations: 3.533 MB / 0.9638 GB, free: 15.18 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