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.001209/0.001209, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002068/0.003277, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00141/0.00141, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001913/0.003323, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9313/0.9313, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09885/1.03, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.856/1.856, allocations: 378.4 MB / 0.6079 GB, free: 7.699 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4726/2.329, allocations: 123.3 MB / 0.7283 GB, free: 5.73 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.7296 GB, free: 4.426 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.902e-05/3.051e-05, allocations: 6.016 kB / 0.7296 GB, free: 4.422 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002471/0.002501, allocations: 1.882 MB / 0.7315 GB, free: 2.562 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.003887, allocations: 1.138 MB / 0.7326 GB, free: 1.426 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.725e-05/0.003965, allocations: 0.7656 kB / 0.7326 GB, free: 1.426 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.0002658/0.00423, allocations: 147.7 kB / 0.7327 GB, free: 1.285 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.004514, allocations: 191.9 kB / 0.7329 GB, free: 1.105 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003278/0.004842, allocations: 238.5 kB / 0.7331 GB, free: 0.875 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0002625/0.005105, allocations: 260.3 kB / 0.7334 GB, free: 0.625 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.005221, allocations: 46.97 kB / 0.7334 GB, free: 0.5781 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007095/0.005931, allocations: 279.4 kB / 0.7337 GB, free: 352 kB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.006092, allocations: 147.7 kB / 0.7338 GB, free: 204 kB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.006121, allocations: 20.53 kB / 0.7339 GB, free: 184 kB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.006227, allocations: 51.92 kB / 0.7339 GB, free: 132 kB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 6.648e-05/0.006294, allocations: 81.23 kB / 0.734 GB, free: 52 kB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 4.402e-05/0.006338, allocations: 43.81 kB / 0.734 GB, free: 8 kB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0002961/0.006634, allocations: 215.3 kB / 0.7342 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.394e-05/0.006648, allocations: 0 / 0.7342 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.623e-06/0.00665, allocations: 0.9688 kB / 0.7342 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.006662, allocations: 0 / 0.7342 GB, free: 15.79 MB / 0.7136 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.0005755/0.007238, allocations: 0.5612 MB / 0.7348 GB, free: 15.21 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.021e-05/0.007268, allocations: 13.62 kB / 0.7348 GB, free: 15.2 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.007422, allocations: 106 kB / 0.7349 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003004/0.007723, allocations: 295.9 kB / 0.7352 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.614e-06/0.00773, allocations: 384 / 0.7352 GB, free: 14.76 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.18e-05/0.007742, allocations: 9.156 kB / 0.7352 GB, free: 14.75 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.381e-05/0.007836, allocations: 74.8 kB / 0.7353 GB, free: 14.67 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.007843, allocations: 5.219 kB / 0.7353 GB, free: 14.67 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.124e-06/0.00785, allocations: 4 kB / 0.7353 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.007854, allocations: 0 / 0.7353 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.421e-05/0.007879, allocations: 9.719 kB / 0.7353 GB, free: 14.66 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002642/0.008143, allocations: 234.9 kB / 0.7355 GB, free: 14.41 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.216e-05/0.008205, allocations: 41.38 kB / 0.7356 GB, free: 14.36 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.32e-05/0.008218, allocations: 4.859 kB / 0.7356 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.829e-05/0.008236, allocations: 5.25 kB / 0.7356 GB, free: 14.35 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.008254, allocations: 30.56 kB / 0.7356 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.373e-06/0.008255, allocations: 0 / 0.7356 GB, free: 14.31 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.00011/0.008365, allocations: 58.27 kB / 0.7356 GB, free: 14.25 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/0.008398, allocations: 55.39 kB / 0.7357 GB, free: 14.18 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.00864, allocations: 370.2 kB / 0.7361 GB, free: 13.8 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.008651, allocations: 29.69 kB / 0.7361 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.438e-05/0.008705, allocations: 136.9 kB / 0.7362 GB, free: 13.63 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.008723, allocations: 16.72 kB / 0.7362 GB, free: 13.62 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.347e-05/0.008747, allocations: 13.72 kB / 0.7362 GB, free: 13.6 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 8.703e-05/0.008834, allocations: 347.5 kB / 0.7366 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.008845, allocations: 3.984 kB / 0.7366 GB, free: 13.25 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.526e-06/0.008853, allocations: 4.625 kB / 0.7366 GB, free: 13.24 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.53e-05/0.008879, allocations: 15.69 kB / 0.7366 GB, free: 13.22 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.00888, allocations: 1.016 kB / 0.7366 GB, free: 13.22 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.96e-05/0.00894, allocations: 65.53 kB / 0.7367 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.00895, allocations: 4.688 kB / 0.7367 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.008955, allocations: 0 / 0.7367 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.008965, allocations: 0.6562 kB / 0.7367 GB, free: 13.15 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.714e-05/0.009022, allocations: 8 kB / 0.7367 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-06/0.009024, allocations: 1.406 kB / 0.7367 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.915e-05/0.009053, allocations: 4 kB / 0.7367 GB, free: 13.14 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.009061, allocations: 7.984 kB / 0.7367 GB, free: 13.13 MB / 0.7136 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 6.198e-05/0.009123, allocations: 121.9 kB / 0.7368 GB, free: 13 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.009147, allocations: 15.98 kB / 0.7368 GB, free: 12.98 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.009247, allocations: 72.36 kB / 0.7369 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.009249, allocations: 1.25 kB / 0.7369 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.00925, allocations: 0 / 0.7369 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.009252, allocations: 0 / 0.7369 GB, free: 12.91 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001287/0.009381, allocations: 137.7 kB / 0.737 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.009382, allocations: 1.25 kB / 0.737 GB, free: 12.75 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.417e-05/0.009416, allocations: 11.98 kB / 0.737 GB, free: 12.74 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 2.937e-05/0.009446, allocations: 27.81 kB / 0.7371 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.009448, allocations: 1 kB / 0.7371 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.08e-06/0.009453, allocations: 4 kB / 0.7371 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.009456, allocations: 3.984 kB / 0.7371 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.009457, allocations: 0.5312 kB / 0.7371 GB, free: 12.71 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.181e-05/0.009549, allocations: 153 kB / 0.7372 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.009565, allocations: 7.938 kB / 0.7372 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.163e-05/0.009607, allocations: 0 / 0.7372 GB, free: 12.54 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.163e-05/0.009629, allocations: 4.734 kB / 0.7372 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.009632, allocations: 0 / 0.7372 GB, free: 12.53 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0001381/0.00977, allocations: 172.8 kB / 0.7374 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of sort global known variables: time 6.1e-08/0.00977, allocations: 0 / 0.7374 GB, free: 12.36 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0001403/0.00991, allocations: 27.95 kB / 0.7374 GB, free: 12.34 MB / 0.7136 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.001104/0.01101, allocations: 470.8 kB / 0.7379 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.8e-05/0.01108, allocations: 25.45 kB / 0.7379 GB, free: 12.08 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.01109, allocations: 9.281 kB / 0.7379 GB, free: 12.07 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.015e-05/0.01111, allocations: 8.859 kB / 0.7379 GB, free: 12.06 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.01141, allocations: 241.5 kB / 0.7381 GB, free: 11.81 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008808/0.01229, allocations: 451.1 kB / 0.7386 GB, free: 11.34 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.35e-05/0.01235, allocations: 112.1 kB / 0.7387 GB, free: 11.21 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.921e-05/0.01241, allocations: 31.27 kB / 0.7387 GB, free: 11.18 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.549e-05/0.0125, allocations: 87.34 kB / 0.7388 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of SimCode: time 7.41e-07/0.0125, allocations: 1.406 kB / 0.7388 GB, free: 11.1 MB / 0.7136 GB Notification: Performance of Templates: time 0.004861/0.01736, allocations: 2.854 MB / 0.7416 GB, free: 8.406 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.871008390560746]