Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001804/0.001804, allocations: 80.41 kB / 20.23 MB, free: 4.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002192/0.002192, allocations: 161.7 kB / 23.55 MB, free: 0.8906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.572/1.572, allocations: 177.1 MB / 203.9 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.873/2.873, allocations: 377.8 MB / 0.6232 GB, free: 8.523 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 0.8108 GB, free: 2.082 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.537e-05/2.698e-05, allocations: 4.984 kB / 0.8108 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003401/0.003428, allocations: 1.794 MB / 0.8126 GB, free: 296 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002138/0.005566, allocations: 1.09 MB / 0.8136 GB, free: 15.2 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.806e-05/0.005655, allocations: 4 kB / 0.8136 GB, free: 15.19 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0004571/0.006112, allocations: 132.2 kB / 0.8137 GB, free: 15.06 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0004904/0.006602, allocations: 208.8 kB / 0.8139 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005543/0.007156, allocations: 213 kB / 0.8141 GB, free: 14.65 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000392/0.007548, allocations: 271.3 kB / 0.8144 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.007687, allocations: 36.55 kB / 0.8144 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000293/0.00798, allocations: 144.2 kB / 0.8146 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002444/0.008225, allocations: 151.7 kB / 0.8147 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.585e-05/0.008271, allocations: 24.84 kB / 0.8147 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.008397, allocations: 59.91 kB / 0.8148 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.008529, allocations: 85.34 kB / 0.8149 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 9.817e-05/0.008627, allocations: 67.72 kB / 0.815 GB, free: 13.83 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0005218/0.009149, allocations: 366.7 kB / 0.8153 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.009152, allocations: 0 / 0.8153 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.002e-06/0.009153, allocations: 0 / 0.8153 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.009158, allocations: 0.5312 kB / 0.8153 GB, free: 13.47 MB / 0.7761 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.0009373/0.01009, allocations: 0.5516 MB / 0.8158 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.01013, allocations: 12.56 kB / 0.8159 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002014/0.01033, allocations: 42.36 kB / 0.8159 GB, free: 12.84 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008461/0.01118, allocations: 383.9 kB / 0.8163 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.01119, allocations: 4.375 kB / 0.8163 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.01121, allocations: 8.359 kB / 0.8163 GB, free: 12.43 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.0114, allocations: 78.67 kB / 0.8163 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.01141, allocations: 4.531 kB / 0.8164 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.01142, allocations: 0 / 0.8164 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.051e-05/0.01143, allocations: 4.781 kB / 0.8164 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001483/0.01158, allocations: 53.06 kB / 0.8164 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006435/0.01223, allocations: 396.2 kB / 0.8168 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001462/0.01237, allocations: 51.86 kB / 0.8168 GB, free: 11.81 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.966e-05/0.01243, allocations: 20.91 kB / 0.8169 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.01246, allocations: 4 kB / 0.8169 GB, free: 11.78 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.01249, allocations: 36.3 kB / 0.8169 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.01249, allocations: 0 / 0.8169 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0003266/0.01282, allocations: 101.5 kB / 0.817 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.01287, allocations: 55.34 kB / 0.817 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007986/0.01366, allocations: 0.5779 MB / 0.8176 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.01369, allocations: 25.7 kB / 0.8176 GB, free: 10.95 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.01387, allocations: 180 kB / 0.8178 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.01389, allocations: 11.94 kB / 0.8178 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.01393, allocations: 13.72 kB / 0.8178 GB, free: 10.74 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0004149/0.01435, allocations: 350.7 kB / 0.8182 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.506e-05/0.0144, allocations: 14.78 kB / 0.8182 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.338e-05/0.01445, allocations: 12.09 kB / 0.8182 GB, free: 10.37 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001015/0.01455, allocations: 36.78 kB / 0.8182 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.01455, allocations: 0 / 0.8182 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002141/0.01476, allocations: 97.38 kB / 0.8183 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.01478, allocations: 12.28 kB / 0.8183 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.01478, allocations: 0 / 0.8183 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.0148, allocations: 0 / 0.8183 GB, free: 10.22 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.366e-05/0.01487, allocations: 7.984 kB / 0.8183 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.589e-06/0.01488, allocations: 0.5 kB / 0.8183 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.49e-05/0.01494, allocations: 4.562 kB / 0.8183 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.01495, allocations: 3.938 kB / 0.8183 GB, free: 10.2 MB / 0.7761 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.000194/0.01515, allocations: 183.2 kB / 0.8185 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.9e-05/0.01522, allocations: 31.81 kB / 0.8185 GB, free: 9.984 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/0.01547, allocations: 110.9 kB / 0.8187 GB, free: 9.867 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.01547, allocations: 4 kB / 0.8187 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.01547, allocations: 0 / 0.8187 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.01548, allocations: 0 / 0.8187 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003077/0.01578, allocations: 221.1 kB / 0.8189 GB, free: 9.617 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.01579, allocations: 3.984 kB / 0.8189 GB, free: 9.613 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.028e-05/0.01584, allocations: 4 kB / 0.8189 GB, free: 9.609 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.01584, allocations: 0.5625 kB / 0.8189 GB, free: 9.609 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.01585, allocations: 4 kB / 0.8189 GB, free: 9.605 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.01585, allocations: 1.125 kB / 0.8189 GB, free: 9.605 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.01585, allocations: 0 / 0.8189 GB, free: 9.605 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002621/0.01611, allocations: 192.6 kB / 0.8191 GB, free: 9.402 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.972e-05/0.01619, allocations: 39.75 kB / 0.8191 GB, free: 9.363 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.01622, allocations: 4 kB / 0.8191 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.465e-05/0.01632, allocations: 0.8438 kB / 0.8191 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.01636, allocations: 8.016 kB / 0.8191 GB, free: 9.352 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-06/0.01636, allocations: 4.594 kB / 0.8191 GB, free: 9.348 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0005827/0.01695, allocations: 438.8 kB / 0.8195 GB, free: 8.922 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01695, allocations: 0 / 0.8195 GB, free: 8.922 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000282/0.01723, allocations: 31.88 kB / 0.8196 GB, free: 8.891 MB / 0.7761 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.001683/0.01891, allocations: 384.3 kB / 0.8199 GB, free: 8.672 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.01906, allocations: 27.92 kB / 0.82 GB, free: 8.645 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-06/0.01906, allocations: 0 / 0.82 GB, free: 8.645 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.339e-05/0.01913, allocations: 21.08 kB / 0.82 GB, free: 8.625 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004275/0.01955, allocations: 49.22 kB / 0.82 GB, free: 8.582 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009346/0.02049, allocations: 0.5344 MB / 0.8206 GB, free: 8.023 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002479/0.02074, allocations: 192.7 kB / 0.8207 GB, free: 7.816 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001138/0.02085, allocations: 44.81 kB / 0.8208 GB, free: 7.773 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.068e-05/0.02092, allocations: 28.48 kB / 0.8208 GB, free: 7.746 MB / 0.7761 GB Notification: Performance of SimCode: time 4.91e-07/0.02092, allocations: 0.5938 kB / 0.8208 GB, free: 7.746 MB / 0.7761 GB Notification: Performance of Templates: time 0.007449/0.02837, allocations: 2.717 MB / 0.8235 GB, free: 5.074 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.791317473049276]