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.001415/0.001415, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001654/0.001654, allocations: 161 kB / 23.82 MB, free: 0.75 MB / 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.9501/0.9501, allocations: 177.1 MB / 204.2 MB, free: 5.254 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.878/1.878, allocations: 377.8 MB / 0.6236 GB, free: 8.547 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 1.674e-06/1.674e-06, allocations: 0 / 0.8115 GB, free: 1.703 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.904e-05/2.071e-05, allocations: 5.453 kB / 0.8115 GB, free: 1.699 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002318/0.002338, allocations: 1.847 MB / 0.8133 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001235/0.003573, allocations: 1.113 MB / 0.8144 GB, free: 14.74 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.04e-05/0.003653, allocations: 8.812 kB / 0.8144 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.003998, allocations: 135.4 kB / 0.8146 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0006085/0.004606, allocations: 204.4 kB / 0.8148 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002977/0.004904, allocations: 217 kB / 0.815 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.005145, allocations: 272.8 kB / 0.8152 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.005274, allocations: 40.55 kB / 0.8153 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001983/0.005472, allocations: 143.6 kB / 0.8154 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.005627, allocations: 151.6 kB / 0.8155 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.878e-05/0.005655, allocations: 21.44 kB / 0.8156 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 8.413e-05/0.00574, allocations: 59.91 kB / 0.8156 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.635e-05/0.005816, allocations: 91.69 kB / 0.8157 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.563e-05/0.005872, allocations: 63.78 kB / 0.8158 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.006112, allocations: 223.7 kB / 0.816 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.006115, allocations: 1.062 kB / 0.816 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of FrontEnd: time 7.11e-07/0.006115, allocations: 0 / 0.816 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.00612, allocations: 0 / 0.816 GB, free: 13.14 MB / 0.7761 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.0006173/0.006737, allocations: 0.6552 MB / 0.8166 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.006772, allocations: 12.75 kB / 0.8166 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001421/0.006914, allocations: 44.73 kB / 0.8167 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.007253, allocations: 332 kB / 0.817 GB, free: 12.05 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.007264, allocations: 8.375 kB / 0.817 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.007278, allocations: 4.375 kB / 0.817 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001245/0.007402, allocations: 63.56 kB / 0.8171 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.007414, allocations: 5.062 kB / 0.8171 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.007424, allocations: 4 kB / 0.8171 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-06/0.007433, allocations: 4 kB / 0.8171 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.948e-05/0.007472, allocations: 12.73 kB / 0.8171 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004214/0.007893, allocations: 443.4 kB / 0.8175 GB, free: 11.48 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 7.765e-05/0.007971, allocations: 39.72 kB / 0.8176 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.315e-05/0.007994, allocations: 12.97 kB / 0.8176 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.284e-05/0.008017, allocations: 8.047 kB / 0.8176 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.008037, allocations: 33.39 kB / 0.8176 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 9.71e-07/0.008038, allocations: 0 / 0.8176 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001679/0.008206, allocations: 75.41 kB / 0.8177 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.008233, allocations: 59.34 kB / 0.8177 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003441/0.008577, allocations: 458.7 kB / 0.8182 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 9.869e-06/0.008587, allocations: 29.7 kB / 0.8182 GB, free: 10.71 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.008702, allocations: 238.8 kB / 0.8184 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.008719, allocations: 10.2 kB / 0.8184 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.731e-05/0.008746, allocations: 23.38 kB / 0.8185 GB, free: 10.44 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001382/0.008884, allocations: 0.5274 MB / 0.819 GB, free: 9.898 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.505e-05/0.008899, allocations: 4 kB / 0.819 GB, free: 9.895 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.177e-05/0.008911, allocations: 4 kB / 0.819 GB, free: 9.891 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.175e-05/0.008943, allocations: 15.67 kB / 0.819 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.008945, allocations: 3.438 kB / 0.819 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.538e-05/0.00903, allocations: 81.67 kB / 0.8191 GB, free: 9.785 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.009044, allocations: 8 kB / 0.8191 GB, free: 9.777 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.617e-06/0.009047, allocations: 0 / 0.8191 GB, free: 9.777 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.009064, allocations: 4.031 kB / 0.8191 GB, free: 9.773 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.46e-05/0.009118, allocations: 4 kB / 0.8191 GB, free: 9.77 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.009123, allocations: 0 / 0.8191 GB, free: 9.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.199e-05/0.009155, allocations: 4 kB / 0.8191 GB, free: 9.766 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.009161, allocations: 7.922 kB / 0.8191 GB, free: 9.758 MB / 0.7761 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.244e-05/0.009233, allocations: 157.3 kB / 0.8193 GB, free: 9.594 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.26e-05/0.009276, allocations: 36.27 kB / 0.8193 GB, free: 9.559 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001195/0.009395, allocations: 80.97 kB / 0.8194 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.009397, allocations: 0 / 0.8194 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.0094, allocations: 0.5625 kB / 0.8194 GB, free: 9.469 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.686e-06/0.009404, allocations: 4 kB / 0.8194 GB, free: 9.465 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001911/0.009595, allocations: 241.8 kB / 0.8196 GB, free: 9.195 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.009596, allocations: 0 / 0.8196 GB, free: 9.195 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.198e-05/0.009618, allocations: 7.938 kB / 0.8196 GB, free: 9.188 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.442e-06/0.009619, allocations: 0.5625 kB / 0.8196 GB, free: 9.188 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.009626, allocations: 3.984 kB / 0.8196 GB, free: 9.184 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.009628, allocations: 0.625 kB / 0.8196 GB, free: 9.184 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.009629, allocations: 1.969 kB / 0.8196 GB, free: 9.184 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.009746, allocations: 223.7 kB / 0.8198 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.444e-05/0.00979, allocations: 47.69 kB / 0.8199 GB, free: 8.898 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.009808, allocations: 0 / 0.8199 GB, free: 8.898 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.317e-05/0.009851, allocations: 4 kB / 0.8199 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.00988, allocations: 0 / 0.8199 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.009883, allocations: 0.8125 kB / 0.8199 GB, free: 8.895 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002129/0.0101, allocations: 315 kB / 0.8202 GB, free: 8.59 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.0101, allocations: 0.9375 kB / 0.8202 GB, free: 8.59 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001777/0.01027, allocations: 23.94 kB / 0.8202 GB, free: 8.566 MB / 0.7761 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.0007226/0.011, allocations: 351 kB / 0.8205 GB, free: 8.348 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 8.353e-05/0.01108, allocations: 23.61 kB / 0.8206 GB, free: 8.32 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.01108, allocations: 0 / 0.8206 GB, free: 8.32 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.735e-05/0.0111, allocations: 12.75 kB / 0.8206 GB, free: 8.305 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.01136, allocations: 49.98 kB / 0.8206 GB, free: 8.258 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006925/0.01205, allocations: 445.7 kB / 0.821 GB, free: 7.793 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.58e-05/0.01212, allocations: 104.3 kB / 0.8211 GB, free: 7.672 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 6.852e-05/0.01218, allocations: 33.75 kB / 0.8212 GB, free: 7.641 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.01223, allocations: 28.48 kB / 0.8212 GB, free: 7.613 MB / 0.7761 GB Notification: Performance of SimCode: time 5.81e-07/0.01224, allocations: 0 / 0.8212 GB, free: 7.613 MB / 0.7761 GB Notification: Performance of Templates: time 0.004895/0.01713, allocations: 2.712 MB / 0.8239 GB, free: 4.949 MB / 0.7761 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: 5.245053496211767]