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.0009713/0.0009713, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.0009546/0.0009546, allocations: 169 kB / 24.28 MB, free: 276 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.9206/0.9206, allocations: 177.1 MB / 204.6 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.818/1.818, allocations: 377.8 MB / 0.6239 GB, free: 8.555 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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 2.745e-06/2.745e-06, allocations: 0 / 0.8115 GB, free: 0.9453 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.08e-05/3.354e-05, allocations: 6.25 kB / 0.8115 GB, free: 0.9375 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00482/0.004854, allocations: 1.846 MB / 0.8133 GB, free: 15.1 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.002029/0.006883, allocations: 1.113 MB / 0.8144 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.007042, allocations: 4.812 kB / 0.8144 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0004429/0.007484, allocations: 127.5 kB / 0.8145 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0004484/0.007933, allocations: 209.7 kB / 0.8147 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003446/0.008277, allocations: 219.4 kB / 0.8149 GB, free: 13.44 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.008557, allocations: 276.8 kB / 0.8152 GB, free: 13.17 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001387/0.008696, allocations: 40.5 kB / 0.8152 GB, free: 13.12 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002162/0.008912, allocations: 147.6 kB / 0.8154 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000169/0.009081, allocations: 143.7 kB / 0.8155 GB, free: 12.84 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.009111, allocations: 25.08 kB / 0.8155 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 9.337e-05/0.009204, allocations: 59.86 kB / 0.8156 GB, free: 12.76 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 8.139e-05/0.009285, allocations: 91.75 kB / 0.8157 GB, free: 12.67 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 6.197e-05/0.009347, allocations: 65.17 kB / 0.8158 GB, free: 12.61 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0002583/0.009606, allocations: 223.1 kB / 0.816 GB, free: 12.39 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.009609, allocations: 0 / 0.816 GB, free: 12.39 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.292e-06/0.00961, allocations: 0 / 0.816 GB, free: 12.39 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.009615, allocations: 2.281 kB / 0.816 GB, free: 12.39 MB / 0.7292 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.0006379/0.01025, allocations: 0.6582 MB / 0.8166 GB, free: 11.69 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.0103, allocations: 8.031 kB / 0.8166 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.01046, allocations: 44.7 kB / 0.8167 GB, free: 11.64 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003784/0.01084, allocations: 318.8 kB / 0.817 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.01086, allocations: 4.906 kB / 0.817 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.01087, allocations: 9.094 kB / 0.817 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.01101, allocations: 66.88 kB / 0.817 GB, free: 11.22 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.01101, allocations: 4.438 kB / 0.817 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.01103, allocations: 9.594 kB / 0.8171 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.01104, allocations: 0 / 0.8171 GB, free: 11.21 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.784e-05/0.01108, allocations: 15.98 kB / 0.8171 GB, free: 11.19 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.01155, allocations: 439.4 kB / 0.8175 GB, free: 10.73 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 9.228e-05/0.01164, allocations: 35.69 kB / 0.8175 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.813e-05/0.01167, allocations: 20.52 kB / 0.8175 GB, free: 10.66 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.01169, allocations: 3.938 kB / 0.8175 GB, free: 10.65 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.485e-05/0.01172, allocations: 33.98 kB / 0.8176 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.884e-06/0.01172, allocations: 0 / 0.8176 GB, free: 10.61 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0002003/0.01192, allocations: 78.22 kB / 0.8177 GB, free: 10.53 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.909e-05/0.01195, allocations: 56.09 kB / 0.8177 GB, free: 10.46 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003627/0.01231, allocations: 454.7 kB / 0.8181 GB, free: 10 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.01232, allocations: 27.08 kB / 0.8182 GB, free: 9.973 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.01244, allocations: 246.7 kB / 0.8184 GB, free: 9.727 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.01246, allocations: 3.953 kB / 0.8184 GB, free: 9.723 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.204e-05/0.01249, allocations: 23.36 kB / 0.8184 GB, free: 9.691 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.01265, allocations: 0.5291 MB / 0.8189 GB, free: 9.152 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.708e-05/0.01267, allocations: 7.984 kB / 0.819 GB, free: 9.145 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.233e-05/0.01268, allocations: 7.938 kB / 0.819 GB, free: 9.137 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.388e-05/0.01271, allocations: 11.8 kB / 0.819 GB, free: 9.121 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.01272, allocations: 8.906 kB / 0.819 GB, free: 9.113 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001031/0.01282, allocations: 73.45 kB / 0.8191 GB, free: 9.035 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.01283, allocations: 8 kB / 0.8191 GB, free: 9.027 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.01284, allocations: 2.25 kB / 0.8191 GB, free: 9.027 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.01285, allocations: 0 / 0.8191 GB, free: 9.027 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.626e-05/0.01292, allocations: 7.984 kB / 0.8191 GB, free: 9.02 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.01292, allocations: 0 / 0.8191 GB, free: 9.02 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.452e-05/0.01296, allocations: 4 kB / 0.8191 GB, free: 9.016 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.01297, allocations: 7.875 kB / 0.8191 GB, free: 9.008 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 8.473e-05/0.01305, allocations: 163.8 kB / 0.8192 GB, free: 8.84 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.01309, allocations: 27.81 kB / 0.8193 GB, free: 8.812 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001421/0.01323, allocations: 80.42 kB / 0.8193 GB, free: 8.719 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.01323, allocations: 0 / 0.8193 GB, free: 8.719 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.01324, allocations: 4 kB / 0.8193 GB, free: 8.715 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.01324, allocations: 0 / 0.8193 GB, free: 8.715 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002086/0.01345, allocations: 248.4 kB / 0.8196 GB, free: 8.438 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.01345, allocations: 0 / 0.8196 GB, free: 8.438 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.224e-05/0.01348, allocations: 9.078 kB / 0.8196 GB, free: 8.43 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.01349, allocations: 0 / 0.8196 GB, free: 8.43 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.01349, allocations: 0 / 0.8196 GB, free: 8.43 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.01349, allocations: 4.5 kB / 0.8196 GB, free: 8.426 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.0135, allocations: 0.5625 kB / 0.8196 GB, free: 8.426 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003991/0.0139, allocations: 223.6 kB / 0.8198 GB, free: 8.188 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.01394, allocations: 36.36 kB / 0.8198 GB, free: 8.152 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.01396, allocations: 5 kB / 0.8198 GB, free: 8.148 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.578e-05/0.014, allocations: 4 kB / 0.8199 GB, free: 8.145 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.01403, allocations: 3.984 kB / 0.8199 GB, free: 8.141 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.01404, allocations: 0.9375 kB / 0.8199 GB, free: 8.141 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002204/0.01426, allocations: 311.1 kB / 0.8202 GB, free: 7.84 MB / 0.7292 GB Notification: Performance of sort global known variables: time 7e-08/0.01426, allocations: 0.8125 kB / 0.8202 GB, free: 7.84 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001919/0.01445, allocations: 27.89 kB / 0.8202 GB, free: 7.812 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.0008097/0.01526, allocations: 346.3 kB / 0.8205 GB, free: 7.598 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 9.557e-05/0.01535, allocations: 27.55 kB / 0.8205 GB, free: 7.566 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.01536, allocations: 0 / 0.8205 GB, free: 7.566 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 1.813e-05/0.01537, allocations: 13.31 kB / 0.8205 GB, free: 7.551 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000281/0.01565, allocations: 58.36 kB / 0.8206 GB, free: 7.496 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007723/0.01643, allocations: 445.3 kB / 0.821 GB, free: 7.031 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.78e-05/0.01649, allocations: 104.3 kB / 0.8211 GB, free: 6.91 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.335e-05/0.01657, allocations: 37.02 kB / 0.8212 GB, free: 6.879 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.883e-05/0.01662, allocations: 24.5 kB / 0.8212 GB, free: 6.855 MB / 0.7292 GB Notification: Performance of SimCode: time 8.32e-07/0.01662, allocations: 3.344 kB / 0.8212 GB, free: 6.855 MB / 0.7292 GB Notification: Performance of Templates: time 0.005286/0.0219, allocations: 2.716 MB / 0.8238 GB, free: 4.188 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.886551485164091]