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.00149/0.00149, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001716/0.001716, allocations: 195.1 kB / 16.25 MB, free: 6.629 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.413/1.413, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.411/2.411, allocations: 390.2 MB / 0.6643 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.88 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8048/0.8061, allocations: 140.4 MB / 0.9491 GB, free: 9.09 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003984/0.8101, allocations: 1.834 MB / 0.9509 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001353/0.8115, allocations: 0.892 MB / 0.9518 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.411e-05/0.8116, allocations: 5.312 kB / 0.9518 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005328/0.8121, allocations: 170.9 kB / 0.9519 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000359/0.8125, allocations: 153 kB / 0.9521 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003715/0.8129, allocations: 192.9 kB / 0.9523 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002828/0.8132, allocations: 241.8 kB / 0.9525 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001562/0.8133, allocations: 52.73 kB / 0.9525 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.8135, allocations: 99.3 kB / 0.9526 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001989/0.8137, allocations: 163.1 kB / 0.9528 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.19e-05/0.8138, allocations: 17.62 kB / 0.9528 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.8139, allocations: 47.55 kB / 0.9529 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.103e-05/0.814, allocations: 89.42 kB / 0.9529 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.971e-05/0.8141, allocations: 107.9 kB / 0.953 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002946/0.8144, allocations: 353.3 kB / 0.9534 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.8144, allocations: 0 / 0.9534 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.685e-06/0.8144, allocations: 1.188 kB / 0.9534 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.8144, allocations: 3.938 kB / 0.9534 GB, free: 5.922 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.0007138/0.8151, allocations: 0.6024 MB / 0.954 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.8151, allocations: 9.938 kB / 0.954 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.422e-05/0.8152, allocations: 30.28 kB / 0.954 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004765/0.8157, allocations: 422.5 kB / 0.9544 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.8157, allocations: 2.688 kB / 0.9544 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.8158, allocations: 7.688 kB / 0.9544 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001682/0.8159, allocations: 88.47 kB / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.8159, allocations: 0 / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.816, allocations: 0 / 0.9545 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.816, allocations: 5.375 kB / 0.9545 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.8161, allocations: 52.5 kB / 0.9546 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005382/0.8166, allocations: 480.1 kB / 0.955 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.8168, allocations: 47.67 kB / 0.9551 GB, free: 4.422 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.003e-05/0.8168, allocations: 20.64 kB / 0.9551 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.8169, allocations: 5.266 kB / 0.9551 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.8169, allocations: 35.73 kB / 0.9551 GB, free: 4.359 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.8169, allocations: 3.938 kB / 0.9551 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002855/0.8172, allocations: 103.1 kB / 0.9552 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.656e-05/0.8172, allocations: 52.75 kB / 0.9553 GB, free: 4.223 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005965/0.8178, allocations: 0.5576 MB / 0.9558 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.8178, allocations: 25.7 kB / 0.9558 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.8179, allocations: 177.7 kB / 0.956 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.818, allocations: 3.906 kB / 0.956 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.783e-05/0.818, allocations: 17.06 kB / 0.956 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.634e-05/0.8181, allocations: 341.9 kB / 0.9564 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.802e-05/0.8181, allocations: 12.3 kB / 0.9564 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.884e-05/0.8182, allocations: 15.88 kB / 0.9564 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.289e-05/0.8183, allocations: 44.62 kB / 0.9564 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.8183, allocations: 0 / 0.9564 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001446/0.8184, allocations: 85.77 kB / 0.9565 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.8184, allocations: 4.656 kB / 0.9565 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.8185, allocations: 0 / 0.9565 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.8185, allocations: 5.156 kB / 0.9565 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.147e-05/0.8186, allocations: 10.52 kB / 0.9565 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.8186, allocations: 0 / 0.9565 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.047e-05/0.8186, allocations: 9.125 kB / 0.9565 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.8186, allocations: 1.438 kB / 0.9565 GB, free: 3.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.0001137/0.8188, allocations: 176.3 kB / 0.9567 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.964e-05/0.8188, allocations: 28.19 kB / 0.9567 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001943/0.819, allocations: 104.7 kB / 0.9568 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.819, allocations: 3.938 kB / 0.9568 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.819, allocations: 1.344 kB / 0.9568 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.819, allocations: 0 / 0.9568 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.8193, allocations: 291 kB / 0.9571 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.8193, allocations: 0 / 0.9571 GB, free: 2.727 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.787e-05/0.8194, allocations: 13.42 kB / 0.9571 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.8194, allocations: 1.375 kB / 0.9571 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.8194, allocations: 0 / 0.9571 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.8194, allocations: 5.312 kB / 0.9571 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.8194, allocations: 0 / 0.9571 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001713/0.8196, allocations: 183.4 kB / 0.9573 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.381e-05/0.8196, allocations: 123.2 kB / 0.9574 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.883e-05/0.8197, allocations: 432 / 0.9574 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.604e-05/0.8198, allocations: 6.281 kB / 0.9574 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.8198, allocations: 5.297 kB / 0.9574 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.169e-06/0.8198, allocations: 5.125 kB / 0.9574 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004134/0.8202, allocations: 416.9 kB / 0.9578 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8203, allocations: 1.094 kB / 0.9578 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002512/0.8205, allocations: 24.5 kB / 0.9579 GB, free: 2.191 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.0008046/0.8213, allocations: 369.6 kB / 0.9582 GB, free: 2 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001785/0.8215, allocations: 35.06 kB / 0.9583 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8215, allocations: 0 / 0.9583 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 6.269e-05/0.8216, allocations: 23.83 kB / 0.9583 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.822, allocations: 43.84 kB / 0.9583 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008135/0.8228, allocations: 0.5599 MB / 0.9589 GB, free: 1.566 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002588/0.8231, allocations: 0.7899 MB / 0.9596 GB, free: 0.8086 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0001215/0.8232, allocations: 48.89 kB / 0.9597 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.845e-05/0.8233, allocations: 24.55 kB / 0.9597 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of SimCode: time 3.91e-07/0.8233, allocations: 0 / 0.9597 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of Templates: time 0.00592/0.8292, allocations: 2.437 MB / 0.9621 GB, free: 15.59 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