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.001029/0.001029, allocations: 83.59 kB / 20.45 MB, free: 4.113 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.0009865/0.0009865, allocations: 165 kB / 23.82 MB, free: 0.7422 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.9077/0.9077, allocations: 177.1 MB / 204.2 MB, free: 5.633 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.787/1.787, allocations: 377.8 MB / 0.6236 GB, free: 8.559 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.305e-06/2.305e-06, allocations: 0 / 0.8115 GB, free: 1.754 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.888e-05/2.118e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.75 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00323/0.003252, allocations: 1.86 MB / 0.8133 GB, free: 15.9 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001914/0.005166, allocations: 1.113 MB / 0.8144 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.005267, allocations: 4.719 kB / 0.8144 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0004291/0.005696, allocations: 135.5 kB / 0.8146 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0004808/0.006176, allocations: 204.8 kB / 0.8148 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.006631, allocations: 228.9 kB / 0.815 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003735/0.007005, allocations: 267.4 kB / 0.8152 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.007155, allocations: 38.27 kB / 0.8153 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008975/0.008053, allocations: 225.3 kB / 0.8155 GB, free: 13.74 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.008271, allocations: 147.7 kB / 0.8156 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.008312, allocations: 16 kB / 0.8156 GB, free: 13.58 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.008426, allocations: 61.09 kB / 0.8157 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.00853, allocations: 91.69 kB / 0.8158 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 7.67e-05/0.008607, allocations: 63.72 kB / 0.8158 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003652/0.008972, allocations: 224.7 kB / 0.8161 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.008975, allocations: 0 / 0.8161 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.61e-07/0.008975, allocations: 0 / 0.8161 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.00898, allocations: 0 / 0.8161 GB, free: 13.15 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.0007868/0.009767, allocations: 0.6649 MB / 0.8167 GB, free: 12.45 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.009807, allocations: 8.031 kB / 0.8167 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.009992, allocations: 48.73 kB / 0.8168 GB, free: 12.39 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005033/0.0105, allocations: 345.4 kB / 0.8171 GB, free: 12.04 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.01051, allocations: 12.38 kB / 0.8171 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.395e-05/0.01052, allocations: 4.375 kB / 0.8171 GB, free: 12.02 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001564/0.01068, allocations: 71.66 kB / 0.8172 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.01069, allocations: 3.938 kB / 0.8172 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.056e-05/0.0107, allocations: 0.5312 kB / 0.8172 GB, free: 11.94 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.01071, allocations: 5.594 kB / 0.8172 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.891e-05/0.01077, allocations: 15.98 kB / 0.8172 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000563/0.01133, allocations: 447.3 kB / 0.8176 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 9.83e-05/0.01143, allocations: 35.05 kB / 0.8177 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.07e-05/0.01146, allocations: 16.28 kB / 0.8177 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.01148, allocations: 0.5312 kB / 0.8177 GB, free: 11.38 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.0115, allocations: 33.39 kB / 0.8177 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 2.776e-06/0.01151, allocations: 4.828 kB / 0.8177 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0002118/0.01172, allocations: 81.44 kB / 0.8178 GB, free: 11.25 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.01175, allocations: 52.56 kB / 0.8178 GB, free: 11.18 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005112/0.01226, allocations: 454.7 kB / 0.8183 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.01228, allocations: 29.69 kB / 0.8183 GB, free: 10.69 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.01244, allocations: 236.2 kB / 0.8185 GB, free: 10.46 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.01246, allocations: 11.88 kB / 0.8185 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.0125, allocations: 23.38 kB / 0.8186 GB, free: 10.41 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001781/0.01268, allocations: 0.5274 MB / 0.8191 GB, free: 9.875 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.999e-05/0.0127, allocations: 4.484 kB / 0.8191 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.372e-05/0.01271, allocations: 5.031 kB / 0.8191 GB, free: 9.867 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.23e-05/0.01275, allocations: 19.69 kB / 0.8191 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.01275, allocations: 0 / 0.8191 GB, free: 9.844 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001163/0.01287, allocations: 78.3 kB / 0.8192 GB, free: 9.762 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.01288, allocations: 4 kB / 0.8192 GB, free: 9.758 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-06/0.01289, allocations: 0.8438 kB / 0.8192 GB, free: 9.758 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.0129, allocations: 0 / 0.8192 GB, free: 9.758 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.117e-05/0.01297, allocations: 14.14 kB / 0.8192 GB, free: 9.746 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.01298, allocations: 0 / 0.8192 GB, free: 9.746 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.192e-05/0.01303, allocations: 0 / 0.8192 GB, free: 9.746 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.01304, allocations: 3.938 kB / 0.8192 GB, free: 9.742 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 8.83e-05/0.01313, allocations: 160.6 kB / 0.8194 GB, free: 9.574 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.944e-05/0.01319, allocations: 38.42 kB / 0.8194 GB, free: 9.539 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.01334, allocations: 80.36 kB / 0.8195 GB, free: 9.449 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.01334, allocations: 0 / 0.8195 GB, free: 9.449 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.01334, allocations: 0 / 0.8195 GB, free: 9.449 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.01334, allocations: 0 / 0.8195 GB, free: 9.449 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002825/0.01363, allocations: 240.5 kB / 0.8197 GB, free: 9.18 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.01363, allocations: 0 / 0.8197 GB, free: 9.18 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.299e-05/0.01367, allocations: 7.984 kB / 0.8197 GB, free: 9.172 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.01367, allocations: 1.625 kB / 0.8197 GB, free: 9.172 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.01368, allocations: 4.109 kB / 0.8197 GB, free: 9.168 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.01368, allocations: 3.938 kB / 0.8197 GB, free: 9.164 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.01369, allocations: 0 / 0.8197 GB, free: 9.164 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001692/0.01385, allocations: 220.2 kB / 0.8199 GB, free: 8.93 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.192e-05/0.01392, allocations: 40.28 kB / 0.82 GB, free: 8.891 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.893e-05/0.01395, allocations: 11.94 kB / 0.82 GB, free: 8.879 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.407e-05/0.01403, allocations: 5.344 kB / 0.82 GB, free: 8.875 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.198e-05/0.01406, allocations: 432 / 0.82 GB, free: 8.875 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.01407, allocations: 7.984 kB / 0.82 GB, free: 8.867 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003247/0.0144, allocations: 303.9 kB / 0.8203 GB, free: 8.574 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.1e-07/0.0144, allocations: 0 / 0.8203 GB, free: 8.574 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002916/0.01469, allocations: 27.94 kB / 0.8203 GB, free: 8.547 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.0009296/0.01562, allocations: 328.3 kB / 0.8206 GB, free: 8.348 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001096/0.01573, allocations: 27.61 kB / 0.8206 GB, free: 8.316 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.01573, allocations: 0.7812 kB / 0.8206 GB, free: 8.316 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.767e-05/0.01576, allocations: 15.62 kB / 0.8207 GB, free: 8.297 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.01614, allocations: 58.5 kB / 0.8207 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008986/0.01704, allocations: 438 kB / 0.8211 GB, free: 7.785 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.277e-05/0.01713, allocations: 104.3 kB / 0.8212 GB, free: 7.664 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.501e-05/0.01723, allocations: 45.12 kB / 0.8213 GB, free: 7.621 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.345e-05/0.0173, allocations: 28.5 kB / 0.8213 GB, free: 7.594 MB / 0.7761 GB Notification: Performance of SimCode: time 6.11e-07/0.0173, allocations: 2.469 kB / 0.8213 GB, free: 7.594 MB / 0.7761 GB Notification: Performance of Templates: time 0.005461/0.02276, allocations: 2.782 MB / 0.824 GB, free: 4.852 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: 4.883054133038968]