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.001644/0.001644, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001897/0.001897, allocations: 219.1 kB / 23 MB, free: 4.914 MB / 14.72 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.475/1.475, allocations: 230.6 MB / 256.8 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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 3.262/3.262, allocations: 0.5107 GB / 0.8166 GB, free: 17.81 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/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: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 68.8 kB / 1.187 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3602, allocations: 181.9 MB / 1.365 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00365/0.3639, allocations: 1.784 MB / 1.366 GB, free: 11.77 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002032/0.3659, allocations: 1.088 MB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.366, allocations: 4 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0005718/0.3666, allocations: 194.8 kB / 1.368 GB, free: 10.49 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005656/0.3672, allocations: 208.3 kB / 1.368 GB, free: 10.29 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.3677, allocations: 237.7 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.3681, allocations: 263.3 kB / 1.368 GB, free: 9.797 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.3683, allocations: 48.44 kB / 1.368 GB, free: 9.746 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002436/0.3686, allocations: 103.6 kB / 1.368 GB, free: 9.645 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000282/0.3688, allocations: 167.5 kB / 1.369 GB, free: 9.48 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.627e-05/0.3689, allocations: 20 kB / 1.369 GB, free: 9.461 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.369, allocations: 55.98 kB / 1.369 GB, free: 9.406 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.3692, allocations: 95.61 kB / 1.369 GB, free: 9.312 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.3693, allocations: 87.41 kB / 1.369 GB, free: 9.227 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0005239/0.3698, allocations: 382.5 kB / 1.369 GB, free: 8.852 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3698, allocations: 3.938 kB / 1.369 GB, free: 8.848 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.343e-06/0.3698, allocations: 0 / 1.369 GB, free: 8.848 MB / 1.061 GB Notification: Performance of Transformations before backend: time 1.34e-05/0.3698, allocations: 0 / 1.369 GB, free: 8.848 MB / 1.061 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.0009895/0.3708, allocations: 0.5508 MB / 1.37 GB, free: 8.266 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3708, allocations: 8.031 kB / 1.37 GB, free: 8.258 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.371, allocations: 44.69 kB / 1.37 GB, free: 8.215 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000753/0.3718, allocations: 368.7 kB / 1.37 GB, free: 7.832 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.3718, allocations: 12.38 kB / 1.37 GB, free: 7.82 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.926e-05/0.3718, allocations: 4.125 kB / 1.37 GB, free: 7.816 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001895/0.372, allocations: 89.47 kB / 1.37 GB, free: 7.723 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.372, allocations: 0 / 1.37 GB, free: 7.723 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.372, allocations: 0 / 1.37 GB, free: 7.723 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.372, allocations: 4 kB / 1.37 GB, free: 7.719 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.3722, allocations: 43.97 kB / 1.37 GB, free: 7.676 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00063/0.3728, allocations: 408.2 kB / 1.371 GB, free: 7.246 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.373, allocations: 42.56 kB / 1.371 GB, free: 7.195 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.572e-05/0.373, allocations: 20.91 kB / 1.371 GB, free: 7.172 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.3731, allocations: 4 kB / 1.371 GB, free: 7.168 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.3731, allocations: 34.56 kB / 1.371 GB, free: 7.125 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3731, allocations: 0 / 1.371 GB, free: 7.125 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0003165/0.3734, allocations: 101.4 kB / 1.371 GB, free: 7.02 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.3735, allocations: 59.34 kB / 1.371 GB, free: 6.949 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007708/0.3742, allocations: 0.5719 MB / 1.371 GB, free: 6.367 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.3742, allocations: 25.7 kB / 1.372 GB, free: 6.336 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.3744, allocations: 187.9 kB / 1.372 GB, free: 6.148 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.403e-05/0.3744, allocations: 11.95 kB / 1.372 GB, free: 6.137 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.909e-05/0.3745, allocations: 17.7 kB / 1.372 GB, free: 6.113 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001895/0.3747, allocations: 346.8 kB / 1.372 GB, free: 5.766 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.102e-05/0.3747, allocations: 11.98 kB / 1.372 GB, free: 5.754 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.063e-05/0.3748, allocations: 11.98 kB / 1.372 GB, free: 5.742 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.47e-05/0.3748, allocations: 36.84 kB / 1.372 GB, free: 5.703 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3748, allocations: 112 / 1.372 GB, free: 5.703 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002008/0.375, allocations: 101.6 kB / 1.372 GB, free: 5.598 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.3751, allocations: 4 kB / 1.372 GB, free: 5.594 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.3751, allocations: 4 kB / 1.372 GB, free: 5.59 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.3751, allocations: 0 / 1.372 GB, free: 5.59 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.776e-05/0.3752, allocations: 8.047 kB / 1.372 GB, free: 5.582 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.3752, allocations: 7.922 kB / 1.372 GB, free: 5.574 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.146e-05/0.3752, allocations: 3.984 kB / 1.372 GB, free: 5.57 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.3753, allocations: 4 kB / 1.372 GB, free: 5.566 MB / 1.061 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.0001816/0.3754, allocations: 182.9 kB / 1.372 GB, free: 5.379 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.959e-05/0.3755, allocations: 27.81 kB / 1.372 GB, free: 5.352 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000253/0.3758, allocations: 108.3 kB / 1.373 GB, free: 5.238 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.3758, allocations: 4 kB / 1.373 GB, free: 5.234 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.3758, allocations: 3.938 kB / 1.373 GB, free: 5.23 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.3758, allocations: 4 kB / 1.373 GB, free: 5.227 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002752/0.3761, allocations: 213.2 kB / 1.373 GB, free: 4.988 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3761, allocations: 0 / 1.373 GB, free: 4.988 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.915e-05/0.3761, allocations: 7.984 kB / 1.373 GB, free: 4.98 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.3761, allocations: 4 kB / 1.373 GB, free: 4.977 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.3761, allocations: 0 / 1.373 GB, free: 4.977 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.3761, allocations: 3.938 kB / 1.373 GB, free: 4.973 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3761, allocations: 0 / 1.373 GB, free: 4.973 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002442/0.3764, allocations: 195.2 kB / 1.373 GB, free: 4.766 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 8.574e-05/0.3764, allocations: 39.8 kB / 1.373 GB, free: 4.727 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.299e-05/0.3765, allocations: 4 kB / 1.373 GB, free: 4.723 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.883e-05/0.3766, allocations: 0 / 1.373 GB, free: 4.723 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.257e-05/0.3766, allocations: 7.922 kB / 1.373 GB, free: 4.715 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.261e-06/0.3766, allocations: 4 kB / 1.373 GB, free: 4.711 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005438/0.3772, allocations: 435.1 kB / 1.373 GB, free: 4.285 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3772, allocations: 0 / 1.373 GB, free: 4.285 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002764/0.3774, allocations: 27.95 kB / 1.373 GB, free: 4.258 MB / 1.061 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.001467/0.3789, allocations: 376.6 kB / 1.374 GB, free: 4.035 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001652/0.3791, allocations: 31.98 kB / 1.374 GB, free: 4.004 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3791, allocations: 0 / 1.374 GB, free: 4.004 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.844e-05/0.3791, allocations: 23.92 kB / 1.374 GB, free: 3.98 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004065/0.3795, allocations: 48.05 kB / 1.374 GB, free: 3.941 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009841/0.3805, allocations: 0.5813 MB / 1.374 GB, free: 3.32 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002174/0.3807, allocations: 186.1 kB / 1.375 GB, free: 3.121 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.3808, allocations: 31.42 kB / 1.375 GB, free: 3.09 MB / 1.061 GB Notification: Performance of SimCode: time 3.71e-07/0.3808, allocations: 0 / 1.375 GB, free: 3.09 MB / 1.061 GB Notification: Performance of Templates: time 0.007086/0.3879, allocations: 3.832 MB / 1.378 GB, free: 15.25 MB / 1.076 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/jenkins1/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: 11.953316449187696]