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.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 114.2 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 189 kB / 22.22 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.202/3.202, allocations: 495.7 MB / 0.7831 GB, free: 33.64 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/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=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 0.001938/0.001938, allocations: 67.45 kB / 1.137 GB, free: 33.86 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.366, allocations: 173.6 MB / 1.307 GB, free: 1.914 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003448/0.3694, allocations: 1.815 MB / 1.309 GB, free: 92 kB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.0017/0.3711, allocations: 0.9358 MB / 1.31 GB, free: 15.15 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 8.9e-05/0.3712, allocations: 3.938 kB / 1.31 GB, free: 15.14 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0005943/0.3718, allocations: 183.2 kB / 1.31 GB, free: 14.97 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 0.0003965/0.3722, allocations: 170.2 kB / 1.31 GB, free: 14.8 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.3727, allocations: 217.1 kB / 1.31 GB, free: 14.6 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0003229/0.373, allocations: 243.4 kB / 1.31 GB, free: 14.36 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.3731, allocations: 37.73 kB / 1.31 GB, free: 14.32 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.3733, allocations: 111.6 kB / 1.311 GB, free: 14.21 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002219/0.3735, allocations: 159.5 kB / 1.311 GB, free: 14.05 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 4.981e-05/0.3736, allocations: 20 kB / 1.311 GB, free: 14.04 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.3737, allocations: 47.91 kB / 1.311 GB, free: 13.99 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.3738, allocations: 91.75 kB / 1.311 GB, free: 13.9 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.3739, allocations: 115.2 kB / 1.311 GB, free: 13.79 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.000439/0.3744, allocations: 358.5 kB / 1.311 GB, free: 13.43 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3744, allocations: 0 / 1.311 GB, free: 13.43 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.553e-06/0.3744, allocations: 3.938 kB / 1.311 GB, free: 13.43 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 6.452e-06/0.3744, allocations: 0 / 1.311 GB, free: 13.43 MB / 1.014 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.0009608/0.3753, allocations: 0.5354 MB / 1.312 GB, free: 12.86 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.3754, allocations: 12.92 kB / 1.312 GB, free: 12.85 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.593e-05/0.3755, allocations: 32.7 kB / 1.312 GB, free: 12.82 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006515/0.3761, allocations: 356.8 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.3761, allocations: 4.375 kB / 1.312 GB, free: 12.45 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.3762, allocations: 12.06 kB / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001926/0.3764, allocations: 81.59 kB / 1.312 GB, free: 12.35 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3764, allocations: 0 / 1.312 GB, free: 12.35 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.749e-06/0.3764, allocations: 4 kB / 1.312 GB, free: 12.34 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.3764, allocations: 0 / 1.312 GB, free: 12.34 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.3765, allocations: 51.97 kB / 1.312 GB, free: 12.29 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006448/0.3772, allocations: 447.6 kB / 1.313 GB, free: 11.81 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001456/0.3773, allocations: 42.56 kB / 1.313 GB, free: 11.76 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 6.289e-05/0.3774, allocations: 24.91 kB / 1.313 GB, free: 11.73 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3774, allocations: 0 / 1.313 GB, free: 11.73 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.3774, allocations: 34.5 kB / 1.313 GB, free: 11.69 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.3774, allocations: 0 / 1.313 GB, free: 11.69 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0003318/0.3778, allocations: 105.4 kB / 1.313 GB, free: 11.58 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/0.3778, allocations: 55.39 kB / 1.313 GB, free: 11.52 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007316/0.3785, allocations: 0.5446 MB / 1.314 GB, free: 10.96 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.234e-05/0.3786, allocations: 33.7 kB / 1.314 GB, free: 10.92 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.3787, allocations: 176 kB / 1.314 GB, free: 10.75 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3787, allocations: 11.91 kB / 1.314 GB, free: 10.73 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.3788, allocations: 17.7 kB / 1.314 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001799/0.379, allocations: 342.8 kB / 1.314 GB, free: 10.37 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 5.632e-05/0.379, allocations: 15.98 kB / 1.314 GB, free: 10.35 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 4.471e-05/0.3791, allocations: 12.19 kB / 1.314 GB, free: 10.34 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001093/0.3792, allocations: 48.84 kB / 1.314 GB, free: 10.29 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3792, allocations: 112 / 1.314 GB, free: 10.29 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001795/0.3793, allocations: 89.44 kB / 1.314 GB, free: 10.2 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.3794, allocations: 4 kB / 1.314 GB, free: 10.19 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.3794, allocations: 3.984 kB / 1.314 GB, free: 10.19 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.3794, allocations: 3.938 kB / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.389e-05/0.3795, allocations: 8 kB / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3795, allocations: 0 / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.383e-05/0.3795, allocations: 0 / 1.314 GB, free: 10.18 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3796, allocations: 0 / 1.314 GB, free: 10.18 MB / 1.014 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.000172/0.3797, allocations: 197.7 kB / 1.315 GB, free: 9.973 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.781e-05/0.3798, allocations: 31.75 kB / 1.315 GB, free: 9.941 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.38, allocations: 100.3 kB / 1.315 GB, free: 9.832 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.38, allocations: 7.875 kB / 1.315 GB, free: 9.824 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.38, allocations: 4 kB / 1.315 GB, free: 9.82 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.38, allocations: 3.984 kB / 1.315 GB, free: 9.816 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.3803, allocations: 256.5 kB / 1.315 GB, free: 9.523 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3803, allocations: 0 / 1.315 GB, free: 9.523 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.456e-05/0.3804, allocations: 16 kB / 1.315 GB, free: 9.508 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.3804, allocations: 0 / 1.315 GB, free: 9.508 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.3804, allocations: 3.984 kB / 1.315 GB, free: 9.504 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.015e-06/0.3804, allocations: 3.938 kB / 1.315 GB, free: 9.5 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3804, allocations: 0 / 1.315 GB, free: 9.5 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002373/0.3806, allocations: 183.3 kB / 1.315 GB, free: 9.305 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 8.343e-05/0.3807, allocations: 39.81 kB / 1.315 GB, free: 9.266 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.386e-05/0.3808, allocations: 7.984 kB / 1.315 GB, free: 9.258 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.807e-05/0.3809, allocations: 7.938 kB / 1.315 GB, free: 9.25 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.3809, allocations: 0 / 1.315 GB, free: 9.25 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.3809, allocations: 0 / 1.315 GB, free: 9.25 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.000478/0.3814, allocations: 423.1 kB / 1.316 GB, free: 8.844 MB / 1.014 GB
Notification: Performance of sort global known variables: time 1e-07/0.3814, allocations: 0 / 1.316 GB, free: 8.844 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.00028/0.3817, allocations: 20 kB / 1.316 GB, free: 8.824 MB / 1.014 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.001388/0.383, allocations: 358.2 kB / 1.316 GB, free: 8.594 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0001839/0.3832, allocations: 35.92 kB / 1.316 GB, free: 8.559 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3832, allocations: 0 / 1.316 GB, free: 8.559 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 5.931e-05/0.3833, allocations: 15.98 kB / 1.316 GB, free: 8.543 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.3838, allocations: 48.92 kB / 1.316 GB, free: 8.496 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009191/0.3847, allocations: 0.5173 MB / 1.317 GB, free: 7.957 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/0.3851, allocations: 0.7792 MB / 1.317 GB, free: 7.152 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 0.0001231/0.3853, allocations: 54.91 kB / 1.317 GB, free: 7.094 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.493e-05/0.3853, allocations: 23.44 kB / 1.317 GB, free: 7.07 MB / 1.014 GB
Notification: Performance of SimCode: time 5.11e-07/0.3853, allocations: 0 / 1.317 GB, free: 7.07 MB / 1.014 GB
Notification: Performance of Templates: time 0.006875/0.3922, allocations: 2.511 MB / 1.32 GB, free: 4.602 MB / 1.014 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: 8.830233721062541]