Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0007874/0.0007874, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0007492/0.0007492, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.8635/0.8635, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.722/1.722, allocations: 389 MB / 0.6338 GB, free: 12.68 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.654e-05/2.809e-05, allocations: 9.172 kB / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002322/0.002351, allocations: 1.783 MB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.003534, allocations: 1.091 MB / 1.004 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.53e-05/0.003619, allocations: 3.938 kB / 1.004 GB, free: 10.11 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.000448/0.004067, allocations: 190.2 kB / 1.004 GB, free: 9.922 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 0.0003889/0.004456, allocations: 213.5 kB / 1.004 GB, free: 9.715 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003051/0.004761, allocations: 220.2 kB / 1.004 GB, free: 9.504 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002449/0.005006, allocations: 275.3 kB / 1.005 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.005139, allocations: 40.5 kB / 1.005 GB, free: 9.195 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.005346, allocations: 139.6 kB / 1.005 GB, free: 9.059 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001766/0.005523, allocations: 159.7 kB / 1.005 GB, free: 8.902 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.005551, allocations: 20 kB / 1.005 GB, free: 8.883 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 8.882e-05/0.00564, allocations: 63.91 kB / 1.005 GB, free: 8.82 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 7.52e-05/0.005716, allocations: 83.7 kB / 1.005 GB, free: 8.738 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0003173/0.006033, allocations: 67.77 kB / 1.005 GB, free: 8.672 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0003107/0.006344, allocations: 370.7 kB / 1.005 GB, free: 8.309 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.006347, allocations: 0 / 1.005 GB, free: 8.309 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.513e-06/0.006348, allocations: 0 / 1.005 GB, free: 8.309 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.006354, allocations: 0 / 1.005 GB, free: 8.309 MB / 0.9636 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.0005813/0.006935, allocations: 0.547 MB / 1.006 GB, free: 7.73 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.006972, allocations: 12.69 kB / 1.006 GB, free: 7.719 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.007113, allocations: 44.73 kB / 1.006 GB, free: 7.676 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.007536, allocations: 379.8 kB / 1.006 GB, free: 7.277 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.007547, allocations: 4.375 kB / 1.006 GB, free: 7.273 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.007557, allocations: 4.375 kB / 1.006 GB, free: 7.27 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.00769, allocations: 74.22 kB / 1.006 GB, free: 7.191 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.0077, allocations: 3.938 kB / 1.006 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.007709, allocations: 0 / 1.006 GB, free: 7.188 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.007714, allocations: 4 kB / 1.007 GB, free: 7.184 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.573e-05/0.00779, allocations: 47.97 kB / 1.007 GB, free: 7.137 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004078/0.008198, allocations: 396.2 kB / 1.007 GB, free: 6.719 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000104/0.008302, allocations: 50.55 kB / 1.007 GB, free: 6.66 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.994e-05/0.008332, allocations: 16.92 kB / 1.007 GB, free: 6.641 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.008354, allocations: 0 / 1.007 GB, free: 6.641 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.321e-05/0.008378, allocations: 42.48 kB / 1.007 GB, free: 6.59 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 6.91e-07/0.008378, allocations: 112 / 1.007 GB, free: 6.59 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0001985/0.008577, allocations: 105.4 kB / 1.007 GB, free: 6.48 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.145e-05/0.008608, allocations: 51.41 kB / 1.007 GB, free: 6.418 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004348/0.009043, allocations: 0.5796 MB / 1.008 GB, free: 5.828 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.124e-05/0.009054, allocations: 29.7 kB / 1.008 GB, free: 5.793 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 8.81e-05/0.009142, allocations: 176.1 kB / 1.008 GB, free: 5.617 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.815e-05/0.009161, allocations: 11.88 kB / 1.008 GB, free: 5.605 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/0.00919, allocations: 17.72 kB / 1.008 GB, free: 5.582 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 9.419e-05/0.009285, allocations: 350.7 kB / 1.008 GB, free: 5.23 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.128e-05/0.009316, allocations: 12 kB / 1.008 GB, free: 5.219 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.225e-05/0.009338, allocations: 15.92 kB / 1.008 GB, free: 5.203 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.447e-05/0.009393, allocations: 37.11 kB / 1.008 GB, free: 5.164 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.009395, allocations: 0 / 1.008 GB, free: 5.164 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001007/0.009495, allocations: 101.4 kB / 1.008 GB, free: 5.059 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.009508, allocations: 4 kB / 1.008 GB, free: 5.055 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.009512, allocations: 0 / 1.008 GB, free: 5.055 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.009524, allocations: 0 / 1.008 GB, free: 5.055 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.479e-05/0.009579, allocations: 11.98 kB / 1.008 GB, free: 5.043 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-06/0.009583, allocations: 0 / 1.008 GB, free: 5.043 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.076e-05/0.009614, allocations: 0 / 1.008 GB, free: 5.043 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.00962, allocations: 7.938 kB / 1.008 GB, free: 5.035 MB / 0.9636 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.0001213/0.009741, allocations: 185.8 kB / 1.009 GB, free: 4.844 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.00977, allocations: 31.77 kB / 1.009 GB, free: 4.812 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001555/0.009926, allocations: 108.4 kB / 1.009 GB, free: 4.699 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.009928, allocations: 0 / 1.009 GB, free: 4.699 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.009934, allocations: 4 kB / 1.009 GB, free: 4.695 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.009937, allocations: 0 / 1.009 GB, free: 4.695 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00016/0.0101, allocations: 217.1 kB / 1.009 GB, free: 4.453 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.0101, allocations: 0 / 1.009 GB, free: 4.453 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.76e-05/0.01013, allocations: 11.98 kB / 1.009 GB, free: 4.441 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.01013, allocations: 0 / 1.009 GB, free: 4.441 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.01013, allocations: 0 / 1.009 GB, free: 4.441 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.01014, allocations: 4 kB / 1.009 GB, free: 4.438 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.01014, allocations: 4 kB / 1.009 GB, free: 4.434 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001256/0.01026, allocations: 191.2 kB / 1.009 GB, free: 4.23 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 4.448e-05/0.01031, allocations: 43.75 kB / 1.009 GB, free: 4.188 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.01032, allocations: 4 kB / 1.009 GB, free: 4.184 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.325e-05/0.01037, allocations: 3.938 kB / 1.009 GB, free: 4.18 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.823e-05/0.0104, allocations: 7.984 kB / 1.009 GB, free: 4.172 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-06/0.0104, allocations: 0 / 1.009 GB, free: 4.172 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.0002916/0.01069, allocations: 435.1 kB / 1.01 GB, free: 3.75 MB / 0.9636 GB Notification: Performance of sort global known variables: time 3.2e-07/0.01069, allocations: 0 / 1.01 GB, free: 3.75 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001783/0.01087, allocations: 27.94 kB / 1.01 GB, free: 3.723 MB / 0.9636 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.0006289/0.0115, allocations: 376 kB / 1.01 GB, free: 3.5 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.00011/0.01161, allocations: 39.86 kB / 1.01 GB, free: 3.461 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01161, allocations: 4 kB / 1.01 GB, free: 3.457 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 2.563e-05/0.01164, allocations: 19.98 kB / 1.01 GB, free: 3.438 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.0119, allocations: 45.45 kB / 1.01 GB, free: 3.395 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006266/0.01253, allocations: 0.5607 MB / 1.011 GB, free: 2.797 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001349/0.01267, allocations: 190.1 kB / 1.011 GB, free: 2.594 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/0.01271, allocations: 24.48 kB / 1.011 GB, free: 2.57 MB / 0.9636 GB Notification: Performance of SimCode: time 5.2e-07/0.01271, allocations: 4 kB / 1.011 GB, free: 2.566 MB / 0.9636 GB Notification: Performance of Templates: time 0.004277/0.01699, allocations: 3.852 MB / 1.015 GB, free: 14.72 MB / 0.9792 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.5317579582333565]