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.00188/0.00188, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.002491/0.002491, allocations: 212.3 kB / 22.25 MB, free: 5.121 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.552/1.552, allocations: 230.6 MB / 256 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.336/3.336, allocations: 0.49 GB / 0.7951 GB, free: 33.63 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002054/0.002054, allocations: 66.45 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3397, allocations: 176.1 MB / 1.326 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003368/0.3431, allocations: 1.842 MB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002019/0.3451, allocations: 1.161 MB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.56e-05/0.3452, allocations: 3.938 kB / 1.329 GB, free: 14.43 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005564/0.3458, allocations: 191.7 kB / 1.329 GB, free: 14.24 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004991/0.3463, allocations: 215.2 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005149/0.3468, allocations: 220.8 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003931/0.3472, allocations: 275.3 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.3473, allocations: 44.44 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000218/0.3475, allocations: 111.6 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002383/0.3478, allocations: 183.4 kB / 1.33 GB, free: 13.21 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.326e-05/0.3478, allocations: 20 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001096/0.3479, allocations: 48 kB / 1.331 GB, free: 13.15 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.348, allocations: 91.73 kB / 1.331 GB, free: 13.06 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.3482, allocations: 123.1 kB / 1.331 GB, free: 12.94 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.3486, allocations: 374.4 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3486, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3486, allocations: 4 kB / 1.331 GB, free: 12.57 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.842e-06/0.3486, allocations: 0 / 1.331 GB, free: 12.57 MB / 1.029 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.0008939/0.3495, allocations: 0.5664 MB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.3495, allocations: 8.031 kB / 1.332 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.3497, allocations: 44.69 kB / 1.332 GB, free: 11.92 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006655/0.3504, allocations: 372.6 kB / 1.332 GB, free: 11.53 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.3504, allocations: 4.312 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.986e-05/0.3504, allocations: 8.125 kB / 1.332 GB, free: 11.52 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.3506, allocations: 81.66 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.3506, allocations: 0 / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.3506, allocations: 4 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.3506, allocations: 0 / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.3508, allocations: 43.97 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006587/0.3514, allocations: 459.5 kB / 1.333 GB, free: 10.89 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000145/0.3516, allocations: 54.48 kB / 1.333 GB, free: 10.83 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.596e-05/0.3516, allocations: 16.92 kB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.3516, allocations: 0 / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.3517, allocations: 34.56 kB / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 8.31e-07/0.3517, allocations: 0 / 1.333 GB, free: 10.77 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000314/0.352, allocations: 109.4 kB / 1.333 GB, free: 10.65 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.352, allocations: 59.41 kB / 1.333 GB, free: 10.58 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007306/0.3528, allocations: 0.568 MB / 1.333 GB, free: 10 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.3528, allocations: 29.69 kB / 1.333 GB, free: 9.969 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.353, allocations: 180 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.353, allocations: 15.83 kB / 1.334 GB, free: 9.773 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.353, allocations: 17.72 kB / 1.334 GB, free: 9.75 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001781/0.3532, allocations: 338.8 kB / 1.334 GB, free: 9.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.542e-05/0.3533, allocations: 15.98 kB / 1.334 GB, free: 9.395 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.958e-05/0.3533, allocations: 15.98 kB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.104e-05/0.3534, allocations: 32.84 kB / 1.334 GB, free: 9.344 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.3534, allocations: 4 kB / 1.334 GB, free: 9.34 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001776/0.3536, allocations: 89.48 kB / 1.334 GB, free: 9.246 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.3536, allocations: 8 kB / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3536, allocations: 0 / 1.334 GB, free: 9.238 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.299e-05/0.3536, allocations: 3.938 kB / 1.334 GB, free: 9.234 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.397e-05/0.3537, allocations: 11.92 kB / 1.334 GB, free: 9.223 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.3537, allocations: 4 kB / 1.334 GB, free: 9.219 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.338e-05/0.3538, allocations: 4 kB / 1.334 GB, free: 9.215 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.3538, allocations: 0 / 1.334 GB, free: 9.215 MB / 1.029 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.000183/0.354, allocations: 181.8 kB / 1.334 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.341e-05/0.354, allocations: 35.77 kB / 1.334 GB, free: 8.992 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002318/0.3543, allocations: 104.3 kB / 1.334 GB, free: 8.883 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3543, allocations: 3.938 kB / 1.334 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.3543, allocations: 0 / 1.334 GB, free: 8.879 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3543, allocations: 4 kB / 1.334 GB, free: 8.875 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.3546, allocations: 268.7 kB / 1.335 GB, free: 8.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3546, allocations: 3.938 kB / 1.335 GB, free: 8.566 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.161e-05/0.3546, allocations: 11.98 kB / 1.335 GB, free: 8.555 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3546, allocations: 7.875 kB / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.3547, allocations: 0 / 1.335 GB, free: 8.547 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.3547, allocations: 3.938 kB / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3547, allocations: 0 / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002354/0.3549, allocations: 195.7 kB / 1.335 GB, free: 8.336 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 8.73e-05/0.355, allocations: 39.8 kB / 1.335 GB, free: 8.297 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.335e-05/0.355, allocations: 4 kB / 1.335 GB, free: 8.293 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.082e-05/0.3551, allocations: 3.938 kB / 1.335 GB, free: 8.289 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.3551, allocations: 3.984 kB / 1.335 GB, free: 8.285 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.3552, allocations: 4 kB / 1.335 GB, free: 8.281 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005185/0.3557, allocations: 435.1 kB / 1.335 GB, free: 7.859 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3557, allocations: 0 / 1.335 GB, free: 7.859 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002803/0.356, allocations: 24 kB / 1.335 GB, free: 7.836 MB / 1.029 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.001383/0.3573, allocations: 352.5 kB / 1.336 GB, free: 7.617 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001709/0.3575, allocations: 35.92 kB / 1.336 GB, free: 7.582 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3575, allocations: 4 kB / 1.336 GB, free: 7.578 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.273e-05/0.3576, allocations: 15.98 kB / 1.336 GB, free: 7.562 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.358, allocations: 44.84 kB / 1.336 GB, free: 7.52 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009143/0.3589, allocations: 0.5358 MB / 1.336 GB, free: 6.949 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.3593, allocations: 0.7908 MB / 1.337 GB, free: 6.133 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001089/0.3594, allocations: 55.19 kB / 1.337 GB, free: 6.082 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.346e-05/0.3595, allocations: 27.44 kB / 1.337 GB, free: 6.055 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.3595, allocations: 0 / 1.337 GB, free: 6.055 MB / 1.029 GB Notification: Performance of Templates: time 0.006904/0.3664, allocations: 2.603 MB / 1.34 GB, free: 3.461 MB / 1.029 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: 9.159946782980114]