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.001347/0.001347, allocations: 96.42 kB / 19.7 MB, free: 2.133 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.001531/0.001531, allocations: 212.4 kB / 22.99 MB, free: 4.957 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.49/1.49, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.372/3.372, allocations: 0.49 GB / 0.7959 GB, free: 35.55 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.002045/0.002045, allocations: 66.61 kB / 1.155 GB, free: 25.23 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.402/0.404, allocations: 176.1 MB / 1.327 GB, free: 1.02 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003672/0.4077, allocations: 1.793 MB / 1.329 GB, free: 15.22 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002117/0.4098, allocations: 1.084 MB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.41, allocations: 3.938 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0006295/0.4106, allocations: 194.7 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000569/0.4112, allocations: 215.2 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005992/0.4118, allocations: 229.2 kB / 1.33 GB, free: 13.51 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003916/0.4122, allocations: 271.3 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001636/0.4123, allocations: 44.45 kB / 1.331 GB, free: 13.2 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.4126, allocations: 115.5 kB / 1.331 GB, free: 13.08 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.4128, allocations: 171.5 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.4129, allocations: 20 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001329/0.413, allocations: 55.98 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000132/0.4131, allocations: 91.67 kB / 1.331 GB, free: 12.75 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001015/0.4132, allocations: 83.41 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0005173/0.4137, allocations: 386.4 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4137, allocations: 0 / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.304e-06/0.4138, allocations: 4 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.4138, allocations: 0 / 1.332 GB, free: 12.29 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.0009297/0.4147, allocations: 0.5547 MB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.4147, allocations: 8.031 kB / 1.332 GB, free: 11.69 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.4149, allocations: 44.69 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007736/0.4157, allocations: 372.6 kB / 1.333 GB, free: 11.26 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.4157, allocations: 8.375 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.666e-05/0.4157, allocations: 4.125 kB / 1.333 GB, free: 11.25 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.4159, allocations: 85.53 kB / 1.333 GB, free: 11.16 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4159, allocations: 4 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.416, allocations: 0 / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.416, allocations: 4 kB / 1.333 GB, free: 11.15 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001472/0.4161, allocations: 43.97 kB / 1.333 GB, free: 11.11 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006802/0.4168, allocations: 404.2 kB / 1.333 GB, free: 10.68 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.4169, allocations: 42.56 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.108e-05/0.417, allocations: 24.84 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.417, allocations: 3.984 kB / 1.333 GB, free: 10.6 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.4171, allocations: 38.56 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.4171, allocations: 0 / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0003364/0.4174, allocations: 101.4 kB / 1.333 GB, free: 10.45 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.4175, allocations: 59.34 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007646/0.4182, allocations: 0.5719 MB / 1.334 GB, free: 9.793 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.032e-05/0.4183, allocations: 25.7 kB / 1.334 GB, free: 9.762 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.4184, allocations: 180 kB / 1.334 GB, free: 9.582 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.4184, allocations: 11.91 kB / 1.334 GB, free: 9.57 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.339e-05/0.4185, allocations: 17.7 kB / 1.334 GB, free: 9.547 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001845/0.4187, allocations: 346.8 kB / 1.335 GB, free: 9.199 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.168e-05/0.4187, allocations: 23.86 kB / 1.335 GB, free: 9.176 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.997e-05/0.4188, allocations: 11.98 kB / 1.335 GB, free: 9.164 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.816e-05/0.4189, allocations: 36.84 kB / 1.335 GB, free: 9.125 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.4189, allocations: 0 / 1.335 GB, free: 9.125 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001948/0.4191, allocations: 89.48 kB / 1.335 GB, free: 9.031 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.4191, allocations: 4 kB / 1.335 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.4191, allocations: 0 / 1.335 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.4191, allocations: 0 / 1.335 GB, free: 9.027 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.711e-05/0.4192, allocations: 8 kB / 1.335 GB, free: 9.02 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.4192, allocations: 11.98 kB / 1.335 GB, free: 9.008 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.645e-05/0.4192, allocations: 7.922 kB / 1.335 GB, free: 9 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.4193, allocations: 8 kB / 1.335 GB, free: 8.992 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.0001844/0.4194, allocations: 181.8 kB / 1.335 GB, free: 8.805 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.137e-05/0.4195, allocations: 31.77 kB / 1.335 GB, free: 8.773 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002461/0.4197, allocations: 108.3 kB / 1.335 GB, free: 8.66 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.4197, allocations: 0 / 1.335 GB, free: 8.66 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.4198, allocations: 3.938 kB / 1.335 GB, free: 8.656 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4198, allocations: 4 kB / 1.335 GB, free: 8.652 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002682/0.42, allocations: 213.2 kB / 1.335 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.42, allocations: 0 / 1.335 GB, free: 8.414 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/0.4201, allocations: 7.984 kB / 1.335 GB, free: 8.406 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.4201, allocations: 4 kB / 1.335 GB, free: 8.402 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.4201, allocations: 0 / 1.335 GB, free: 8.402 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4201, allocations: 3.938 kB / 1.335 GB, free: 8.398 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.4201, allocations: 0 / 1.335 GB, free: 8.398 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002428/0.4203, allocations: 191.2 kB / 1.335 GB, free: 8.195 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.348e-05/0.4204, allocations: 40.22 kB / 1.335 GB, free: 8.156 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.621e-05/0.4205, allocations: 4 kB / 1.335 GB, free: 8.152 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.995e-05/0.4206, allocations: 4 kB / 1.335 GB, free: 8.148 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.4206, allocations: 7.922 kB / 1.335 GB, free: 8.141 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.4206, allocations: 4 kB / 1.335 GB, free: 8.137 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005247/0.4211, allocations: 431.1 kB / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of sort global known variables: time 7e-08/0.4211, allocations: 0 / 1.336 GB, free: 7.719 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002794/0.4214, allocations: 27.98 kB / 1.336 GB, free: 7.691 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.001476/0.4229, allocations: 380.3 kB / 1.336 GB, free: 7.465 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001794/0.4231, allocations: 31.92 kB / 1.336 GB, free: 7.434 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4231, allocations: 0 / 1.336 GB, free: 7.434 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.732e-05/0.4231, allocations: 19.98 kB / 1.336 GB, free: 7.414 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004281/0.4236, allocations: 40.27 kB / 1.336 GB, free: 7.375 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009225/0.4245, allocations: 0.5398 MB / 1.337 GB, free: 6.801 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.4247, allocations: 182.1 kB / 1.337 GB, free: 6.605 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001177/0.4248, allocations: 55.25 kB / 1.337 GB, free: 6.551 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.228e-05/0.4249, allocations: 27.44 kB / 1.337 GB, free: 6.523 MB / 1.029 GB Notification: Performance of SimCode: time 4.1e-07/0.4249, allocations: 4 kB / 1.337 GB, free: 6.52 MB / 1.029 GB Notification: Performance of Templates: time 0.007367/0.4322, allocations: 2.9 MB / 1.34 GB, free: 3.645 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 -s cvode -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/jenkins1/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.469418485998176]