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.0009399/0.0009399, allocations: 80.92 kB / 20.75 MB, free: 3.738 MB / 18.57 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.0009772/0.0009772, allocations: 161 kB / 24.17 MB, free: 328 kB / 18.57 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.9071/0.9071, allocations: 177.1 MB / 204.6 MB, free: 5.488 MB / 186.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.83/1.83, allocations: 377.9 MB / 0.624 GB, free: 8.371 MB / 0.5886 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.452e-06/1.452e-06, allocations: 0.7656 kB / 0.76 GB, free: 6.637 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.031e-05, allocations: 2.312 kB / 0.76 GB, free: 6.633 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00301/0.00303, allocations: 1.838 MB / 0.7618 GB, free: 4.805 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001683/0.004713, allocations: 1.128 MB / 0.7629 GB, free: 3.68 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.533e-05/0.004808, allocations: 3.938 kB / 0.7629 GB, free: 3.676 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0004102/0.005219, allocations: 138.5 kB / 0.763 GB, free: 3.543 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.005544, allocations: 201.5 kB / 0.7632 GB, free: 3.355 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.005844, allocations: 228.3 kB / 0.7635 GB, free: 3.133 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.006072, allocations: 263.4 kB / 0.7637 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.006182, allocations: 43.48 kB / 0.7637 GB, free: 2.832 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005787/0.00676, allocations: 221.1 kB / 0.764 GB, free: 2.652 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001545/0.006915, allocations: 152.8 kB / 0.7641 GB, free: 2.504 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.658e-05/0.006941, allocations: 16 kB / 0.7641 GB, free: 2.488 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 7.775e-05/0.007019, allocations: 51.92 kB / 0.7642 GB, free: 2.438 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 7.237e-05/0.007091, allocations: 92.62 kB / 0.7643 GB, free: 2.348 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.253e-05/0.007144, allocations: 63.72 kB / 0.7643 GB, free: 2.285 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.007392, allocations: 223.8 kB / 0.7645 GB, free: 2.066 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.007394, allocations: 0 / 0.7645 GB, free: 2.066 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.092e-06/0.007395, allocations: 5.719 kB / 0.7645 GB, free: 2.062 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.137e-06/0.007399, allocations: 0 / 0.7645 GB, free: 2.062 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.0005305/0.007929, allocations: 0.5182 MB / 0.765 GB, free: 1.52 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.007961, allocations: 8.031 kB / 0.7651 GB, free: 1.512 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.008083, allocations: 37.59 kB / 0.7651 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.008384, allocations: 284 kB / 0.7654 GB, free: 1.176 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.008395, allocations: 9.125 kB / 0.7654 GB, free: 1.168 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.008406, allocations: 4.375 kB / 0.7654 GB, free: 1.164 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.017e-05/0.008496, allocations: 67.67 kB / 0.7654 GB, free: 1.09 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.008506, allocations: 4.562 kB / 0.7654 GB, free: 1.086 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-06/0.008515, allocations: 4 kB / 0.7654 GB, free: 1.082 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.00852, allocations: 2.188 kB / 0.7654 GB, free: 1.082 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.565e-05/0.008545, allocations: 15.94 kB / 0.7655 GB, free: 1.066 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002615/0.008807, allocations: 230.9 kB / 0.7657 GB, free: 0.8242 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 6.323e-05/0.00887, allocations: 33.33 kB / 0.7657 GB, free: 0.7812 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.484e-05/0.008885, allocations: 8.969 kB / 0.7657 GB, free: 0.7695 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.57e-05/0.0089, allocations: 5.531 kB / 0.7657 GB, free: 0.7656 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.008922, allocations: 38.56 kB / 0.7658 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.008923, allocations: 0 / 0.7658 GB, free: 0.7188 MB / 0.7136 GB Notification: Performance of matching and sorting (n=3): time 0.0001171/0.00904, allocations: 53.61 kB / 0.7658 GB, free: 0.6602 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.009071, allocations: 52.66 kB / 0.7659 GB, free: 0.5977 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/0.009318, allocations: 373 kB / 0.7662 GB, free: 224 kB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.002e-05/0.009328, allocations: 25.7 kB / 0.7662 GB, free: 192 kB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.152e-05/0.00938, allocations: 138.5 kB / 0.7664 GB, free: 48 kB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.645e-05/0.009396, allocations: 11.89 kB / 0.7664 GB, free: 36 kB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-05/0.009422, allocations: 21.7 kB / 0.7664 GB, free: 8 kB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.783e-05/0.009519, allocations: 346.7 kB / 0.7667 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.949e-06/0.009529, allocations: 4 kB / 0.7667 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-06/0.009537, allocations: 2.688 kB / 0.7667 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.845e-05/0.009566, allocations: 19.95 kB / 0.7668 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.009568, allocations: 0 / 0.7668 GB, free: 15.63 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 5.962e-05/0.009627, allocations: 57.59 kB / 0.7668 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.009641, allocations: 4 kB / 0.7668 GB, free: 15.57 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.009647, allocations: 4 kB / 0.7668 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.009659, allocations: 0 / 0.7668 GB, free: 15.56 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.541e-05/0.009715, allocations: 10.73 kB / 0.7668 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.274e-06/0.009717, allocations: 0 / 0.7668 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.086e-05/0.009758, allocations: 0 / 0.7668 GB, free: 15.55 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.042e-06/0.009764, allocations: 4 kB / 0.7668 GB, free: 15.55 MB / 0.7292 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 7.952e-05/0.009843, allocations: 116.6 kB / 0.767 GB, free: 15.43 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.009884, allocations: 19.97 kB / 0.767 GB, free: 15.41 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.009996, allocations: 65.41 kB / 0.767 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.009998, allocations: 0 / 0.767 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.312e-06/0.009999, allocations: 0 / 0.767 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.01, allocations: 4.875 kB / 0.767 GB, free: 15.33 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.01018, allocations: 141.7 kB / 0.7672 GB, free: 15.17 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01018, allocations: 0 / 0.7672 GB, free: 15.17 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.837e-05/0.01021, allocations: 8.938 kB / 0.7672 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.01021, allocations: 0 / 0.7672 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.619e-06/0.01022, allocations: 0.625 kB / 0.7672 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.01022, allocations: 0 / 0.7672 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.01022, allocations: 0.8438 kB / 0.7672 GB, free: 15.16 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001003/0.01032, allocations: 159.4 kB / 0.7673 GB, free: 14.99 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.376e-05/0.01037, allocations: 32.31 kB / 0.7674 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.01039, allocations: 4 kB / 0.7674 GB, free: 14.96 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.528e-05/0.01045, allocations: 7.422 kB / 0.7674 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.348e-05/0.01048, allocations: 0 / 0.7674 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.596e-06/0.01048, allocations: 0 / 0.7674 GB, free: 14.95 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001828/0.01066, allocations: 171.5 kB / 0.7675 GB, free: 14.79 MB / 0.7292 GB Notification: Performance of sort global known variables: time 8e-08/0.01066, allocations: 3.938 kB / 0.7675 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002286/0.01089, allocations: 35.89 kB / 0.7676 GB, free: 14.75 MB / 0.7292 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.001092/0.01198, allocations: 433.2 kB / 0.768 GB, free: 14.52 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 6.053e-05/0.01204, allocations: 12.86 kB / 0.768 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.01205, allocations: 4 kB / 0.768 GB, free: 14.5 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.849e-05/0.01207, allocations: 20.23 kB / 0.768 GB, free: 14.48 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.01233, allocations: 58.28 kB / 0.7681 GB, free: 14.43 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000705/0.01303, allocations: 450.4 kB / 0.7685 GB, free: 13.96 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.7e-05/0.01311, allocations: 100.3 kB / 0.7686 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.664e-05/0.01318, allocations: 36.77 kB / 0.7686 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.01329, allocations: 83.38 kB / 0.7687 GB, free: 13.73 MB / 0.7292 GB Notification: Performance of SimCode: time 5.11e-07/0.01329, allocations: 1.344 kB / 0.7687 GB, free: 13.73 MB / 0.7292 GB Notification: Performance of Templates: time 0.005691/0.01898, allocations: 2.848 MB / 0.7715 GB, free: 11.05 MB / 0.7292 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 -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","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.703791356179863]