Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|linPieTwo.u|linPieTwo.y.1.|linPieTwo.y.2.",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00947/0.00947, allocations: 96.7 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001875/0.001876, allocations: 197.2 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.768/2.768, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 59.91 kB / 1.019 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3031, allocations: 151.6 MB / 1.167 GB, free: 6.898 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.004549/0.3077, allocations: 1.762 MB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002016/0.3097, allocations: 0.924 MB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002239/0.31, allocations: 4 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008145/0.3108, allocations: 182.6 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000612/0.3114, allocations: 168.8 kB / 1.17 GB, free: 3.844 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006667/0.3121, allocations: 205.4 kB / 1.17 GB, free: 3.648 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000429/0.3126, allocations: 243.5 kB / 1.17 GB, free: 3.41 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.3127, allocations: 57.64 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.3129, allocations: 107.6 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002353/0.3132, allocations: 147.6 kB / 1.17 GB, free: 3.102 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.833e-05/0.3132, allocations: 16 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.3134, allocations: 47.94 kB / 1.17 GB, free: 3.039 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3135, allocations: 83.8 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001281/0.3137, allocations: 123.1 kB / 1.171 GB, free: 2.836 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004461/0.3141, allocations: 354.5 kB / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.3141, allocations: 0 / 1.171 GB, free: 2.488 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.953e-06/0.3141, allocations: 4 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.248e-05/0.3141, allocations: 3.984 kB / 1.171 GB, free: 2.48 MB / 0.92 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.0009546/0.3151, allocations: 0.6106 MB / 1.171 GB, free: 1.82 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.3152, allocations: 11.97 kB / 1.172 GB, free: 1.809 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.3153, allocations: 36.7 kB / 1.172 GB, free: 1.773 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00065/0.3159, allocations: 414.6 kB / 1.172 GB, free: 1.332 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.316, allocations: 4.375 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.039e-05/0.316, allocations: 8.125 kB / 1.172 GB, free: 1.32 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.3162, allocations: 85.59 kB / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.3162, allocations: 0 / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.3162, allocations: 0 / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.3162, allocations: 0 / 1.172 GB, free: 1.23 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.3164, allocations: 51.91 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.3171, allocations: 480.5 kB / 1.173 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.3172, allocations: 50.5 kB / 1.173 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.928e-05/0.3173, allocations: 20.91 kB / 1.173 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.3173, allocations: 4 kB / 1.173 GB, free: 0.5742 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.3173, allocations: 30.56 kB / 1.173 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.3173, allocations: 0 / 1.173 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0003244/0.3177, allocations: 109.3 kB / 1.173 GB, free: 432 kB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.3177, allocations: 55.41 kB / 1.173 GB, free: 364 kB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000653/0.3184, allocations: 0.5525 MB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.3184, allocations: 29.64 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.3185, allocations: 180 kB / 1.174 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.357e-05/0.3186, allocations: 3.953 kB / 1.174 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-05/0.3186, allocations: 17.72 kB / 1.174 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001356/0.3188, allocations: 342.8 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.435e-05/0.3188, allocations: 12 kB / 1.174 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.518e-05/0.3189, allocations: 19.98 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.398e-05/0.319, allocations: 33.12 kB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.319, allocations: 0 / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001861/0.3192, allocations: 101.4 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3192, allocations: 4 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3192, allocations: 0 / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.3192, allocations: 7.938 kB / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.116e-05/0.3193, allocations: 7.984 kB / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.3194, allocations: 0 / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.588e-05/0.3194, allocations: 8 kB / 1.174 GB, free: 15.01 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.832e-06/0.3194, allocations: 0 / 1.174 GB, free: 15.01 MB / 0.9356 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.0001624/0.3196, allocations: 185.8 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.487e-05/0.3197, allocations: 27.81 kB / 1.174 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002233/0.3199, allocations: 100.2 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3199, allocations: 7.875 kB / 1.174 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3199, allocations: 0 / 1.174 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3199, allocations: 0 / 1.174 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.3202, allocations: 293.4 kB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3202, allocations: 8 kB / 1.175 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.732e-05/0.3203, allocations: 4 kB / 1.175 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3203, allocations: 0 / 1.175 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.3203, allocations: 0 / 1.175 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.3203, allocations: 3.938 kB / 1.175 GB, free: 14.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3203, allocations: 7.984 kB / 1.175 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000217/0.3206, allocations: 187.3 kB / 1.175 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.951e-05/0.3207, allocations: 112.9 kB / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.863e-05/0.3207, allocations: 0 / 1.175 GB, free: 13.98 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.3208, allocations: 15.92 kB / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.352e-05/0.3208, allocations: 0 / 1.175 GB, free: 13.97 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.3209, allocations: 4 kB / 1.175 GB, free: 13.96 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004455/0.3213, allocations: 423 kB / 1.175 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3213, allocations: 0 / 1.175 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002741/0.3216, allocations: 27.92 kB / 1.175 GB, free: 13.53 MB / 0.9356 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.0008177/0.3224, allocations: 346.9 kB / 1.176 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001712/0.3226, allocations: 39.95 kB / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3226, allocations: 0 / 1.176 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.564e-05/0.3227, allocations: 19.98 kB / 1.176 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.3231, allocations: 39.38 kB / 1.176 GB, free: 13.21 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007558/0.3239, allocations: 0.5132 MB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.3243, allocations: 0.7831 MB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001122/0.3244, allocations: 46.92 kB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.918e-05/0.3244, allocations: 23.44 kB / 1.177 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of SimCode: time 2.81e-07/0.3245, allocations: 0 / 1.177 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of Templates: time 0.006153/0.3306, allocations: 2.496 MB / 1.18 GB, free: 9.32 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches