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.001884/0.001884, allocations: 83.69 kB / 20.23 MB, free: 4.184 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.002105/0.002105, allocations: 161.3 kB / 23.55 MB, free: 0.8672 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 1.533/1.533, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 3.007/3.007, allocations: 377.8 MB / 0.6232 GB, free: 8.531 MB / 0.5886 GB " [Timeout remaining time 176] 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.1.|linPieTwo.y.2.",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.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 0.8108 GB, free: 2.105 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.983e-05/3.166e-05, allocations: 2.312 kB / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003631/0.003663, allocations: 1.832 MB / 0.8126 GB, free: 288 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002248/0.005911, allocations: 1.097 MB / 0.8137 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.006046, allocations: 5.625 kB / 0.8137 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0005042/0.00655, allocations: 139.4 kB / 0.8138 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0005459/0.007096, allocations: 196.7 kB / 0.814 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005603/0.007656, allocations: 220.2 kB / 0.8142 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.008068, allocations: 275.3 kB / 0.8145 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.008217, allocations: 37.72 kB / 0.8145 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000299/0.008516, allocations: 139.6 kB / 0.8146 GB, free: 14.19 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002456/0.008761, allocations: 159.7 kB / 0.8148 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.008813, allocations: 21.38 kB / 0.8148 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.008952, allocations: 55.92 kB / 0.8148 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001301/0.009082, allocations: 87.69 kB / 0.8149 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001008/0.009183, allocations: 59.78 kB / 0.815 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0004989/0.009682, allocations: 376.5 kB / 0.8153 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.009685, allocations: 0 / 0.8153 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.413e-06/0.009686, allocations: 0 / 0.8153 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.132e-06/0.009692, allocations: 0 / 0.8153 GB, free: 13.45 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.001067/0.01076, allocations: 0.6866 MB / 0.816 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.0108, allocations: 12.03 kB / 0.816 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000213/0.01102, allocations: 48.69 kB / 0.8161 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006169/0.01163, allocations: 336.2 kB / 0.8164 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.01165, allocations: 4.375 kB / 0.8164 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.01166, allocations: 4.375 kB / 0.8164 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001701/0.01183, allocations: 68.83 kB / 0.8165 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.01184, allocations: 3.938 kB / 0.8165 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.01185, allocations: 3.984 kB / 0.8165 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.01186, allocations: 0 / 0.8165 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.01197, allocations: 35.92 kB / 0.8165 GB, free: 12.19 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007862/0.01276, allocations: 0.4994 MB / 0.817 GB, free: 11.66 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.0129, allocations: 51.59 kB / 0.817 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.435e-05/0.01296, allocations: 16.39 kB / 0.8171 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.01298, allocations: 0 / 0.8171 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.683e-05/0.01303, allocations: 41.92 kB / 0.8171 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.01303, allocations: 1.656 kB / 0.8171 GB, free: 11.52 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0002938/0.01332, allocations: 89.48 kB / 0.8172 GB, free: 11.43 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.01337, allocations: 59.34 kB / 0.8172 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007724/0.01414, allocations: 0.5573 MB / 0.8178 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.01416, allocations: 30.3 kB / 0.8178 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.000255/0.01442, allocations: 267.2 kB / 0.8181 GB, free: 10.49 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.01445, allocations: 7.953 kB / 0.8181 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.976e-05/0.0145, allocations: 24.42 kB / 0.8181 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0003489/0.01484, allocations: 0.5547 MB / 0.8186 GB, free: 9.883 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.676e-05/0.01489, allocations: 12.91 kB / 0.8187 GB, free: 9.871 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.456e-05/0.01494, allocations: 7.984 kB / 0.8187 GB, free: 9.863 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.754e-05/0.01502, allocations: 32.52 kB / 0.8187 GB, free: 9.828 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.01502, allocations: 4 kB / 0.8187 GB, free: 9.824 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001819/0.01521, allocations: 91.61 kB / 0.8188 GB, free: 9.73 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.01522, allocations: 4 kB / 0.8188 GB, free: 9.727 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.01522, allocations: 0 / 0.8188 GB, free: 9.727 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.01524, allocations: 4 kB / 0.8188 GB, free: 9.723 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.669e-05/0.0153, allocations: 7.984 kB / 0.8188 GB, free: 9.715 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.01531, allocations: 0 / 0.8188 GB, free: 9.715 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.033e-05/0.01537, allocations: 2.719 kB / 0.8188 GB, free: 9.715 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.01538, allocations: 8.266 kB / 0.8188 GB, free: 9.707 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 0.0001415/0.01552, allocations: 164.6 kB / 0.819 GB, free: 9.535 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.526e-05/0.01559, allocations: 31.81 kB / 0.819 GB, free: 9.504 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.01581, allocations: 100.3 kB / 0.8191 GB, free: 9.395 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.01581, allocations: 0 / 0.8191 GB, free: 9.395 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.01582, allocations: 1.531 kB / 0.8191 GB, free: 9.395 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.01582, allocations: 4 kB / 0.8191 GB, free: 9.391 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004267/0.01625, allocations: 312.4 kB / 0.8194 GB, free: 9.051 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.01625, allocations: 4 kB / 0.8194 GB, free: 9.047 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.638e-05/0.0163, allocations: 4.5 kB / 0.8194 GB, free: 9.043 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.0163, allocations: 0 / 0.8194 GB, free: 9.043 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.01631, allocations: 0.8281 kB / 0.8194 GB, free: 9.043 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.103e-06/0.01631, allocations: 3.938 kB / 0.8194 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.01631, allocations: 1.875 kB / 0.8194 GB, free: 9.039 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000279/0.01659, allocations: 235.7 kB / 0.8196 GB, free: 8.789 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.01669, allocations: 47.75 kB / 0.8197 GB, free: 8.742 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.053e-05/0.01672, allocations: 0 / 0.8197 GB, free: 8.742 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.585e-05/0.01681, allocations: 1.344 kB / 0.8197 GB, free: 8.742 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.975e-05/0.01685, allocations: 4 kB / 0.8197 GB, free: 8.738 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.538e-06/0.01686, allocations: 0 / 0.8197 GB, free: 8.738 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0004648/0.01732, allocations: 367 kB / 0.82 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01732, allocations: 0.9688 kB / 0.82 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002628/0.01759, allocations: 31.88 kB / 0.8201 GB, free: 8.352 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.002461/0.02005, allocations: 381.7 kB / 0.8204 GB, free: 8.141 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.000154/0.0202, allocations: 35.61 kB / 0.8205 GB, free: 8.102 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.0202, allocations: 4 kB / 0.8205 GB, free: 8.098 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.219e-05/0.02026, allocations: 23.67 kB / 0.8205 GB, free: 8.07 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004041/0.02067, allocations: 46.86 kB / 0.8205 GB, free: 8.027 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008158/0.02148, allocations: 461.9 kB / 0.821 GB, free: 7.547 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002302/0.02171, allocations: 176.2 kB / 0.8212 GB, free: 7.359 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 0.0001033/0.02182, allocations: 39.27 kB / 0.8212 GB, free: 7.316 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.752e-05/0.02188, allocations: 24.5 kB / 0.8212 GB, free: 7.293 MB / 0.7761 GB Notification: Performance of SimCode: time 5.21e-07/0.02189, allocations: 0 / 0.8212 GB, free: 7.293 MB / 0.7761 GB Notification: Performance of Templates: time 0.007179/0.02906, allocations: 2.696 MB / 0.8238 GB, free: 4.637 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.893662311020307]