Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001163/0.001163, allocations: 104.5 kB / 16.27 MB, free: 6.414 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.001138/0.001138, allocations: 188.7 kB / 17.2 MB, free: 5.953 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.562/2.562, allocations: 469.4 MB / 0.7426 GB, free: 3.688 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001307, allocations: 66.2 kB / 0.9088 GB, free: 14.18 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3369/0.3383, allocations: 159.1 MB / 1.064 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003137/0.3414, allocations: 1.762 MB / 1.066 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001411/0.3429, allocations: 0.9278 MB / 1.067 GB, free: 12.34 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.866e-05/0.343, allocations: 4 kB / 1.067 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0005349/0.3435, allocations: 183.2 kB / 1.067 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003624/0.3439, allocations: 169.4 kB / 1.067 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004563/0.3444, allocations: 208 kB / 1.067 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003435/0.3447, allocations: 243.5 kB / 1.068 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.3449, allocations: 49.66 kB / 1.068 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.345, allocations: 103.6 kB / 1.068 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.3452, allocations: 151.5 kB / 1.068 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.172e-05/0.3453, allocations: 24 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 9.814e-05/0.3454, allocations: 48 kB / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.3455, allocations: 91.73 kB / 1.068 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.3456, allocations: 119.1 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003419/0.346, allocations: 343.1 kB / 1.069 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.346, allocations: 0 / 1.069 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.012e-06/0.346, allocations: 0 / 1.069 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.08e-05/0.346, allocations: 4 kB / 1.069 GB, free: 10.64 MB / 0.8419 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.0007615/0.3468, allocations: 0.601 MB / 1.069 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.3468, allocations: 16.62 kB / 1.069 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.373e-05/0.3469, allocations: 28.56 kB / 1.069 GB, free: 9.949 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.3474, allocations: 414.2 kB / 1.07 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.3474, allocations: 8.375 kB / 1.07 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.3474, allocations: 8.125 kB / 1.07 GB, free: 9.492 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.3476, allocations: 73.66 kB / 1.07 GB, free: 9.414 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.3476, allocations: 4 kB / 1.07 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3476, allocations: 0 / 1.07 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3476, allocations: 0 / 1.07 GB, free: 9.41 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001263/0.3478, allocations: 51.97 kB / 1.07 GB, free: 9.359 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006067/0.3484, allocations: 480.5 kB / 1.07 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001265/0.3485, allocations: 46.5 kB / 1.07 GB, free: 8.785 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.528e-05/0.3486, allocations: 21.02 kB / 1.07 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.3486, allocations: 11.94 kB / 1.07 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.3486, allocations: 30.56 kB / 1.07 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.3487, allocations: 0 / 1.07 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3): time 0.0003752/0.349, allocations: 105.2 kB / 1.07 GB, free: 8.602 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.3491, allocations: 55.41 kB / 1.07 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006705/0.3498, allocations: 0.5523 MB / 1.071 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.3498, allocations: 25.7 kB / 1.071 GB, free: 7.945 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.3499, allocations: 180 kB / 1.071 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.35, allocations: 15.73 kB / 1.071 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.021e-05/0.35, allocations: 17.72 kB / 1.071 GB, free: 7.727 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001768/0.3502, allocations: 346.7 kB / 1.072 GB, free: 7.379 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.869e-05/0.3502, allocations: 12 kB / 1.072 GB, free: 7.367 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.882e-05/0.3503, allocations: 15.92 kB / 1.072 GB, free: 7.352 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.417e-05/0.3504, allocations: 36.84 kB / 1.072 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3504, allocations: 0 / 1.072 GB, free: 7.312 MB / 0.8419 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002235/0.3506, allocations: 89.3 kB / 1.072 GB, free: 7.219 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.3506, allocations: 4 kB / 1.072 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3507, allocations: 0 / 1.072 GB, free: 7.215 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3507, allocations: 7.938 kB / 1.072 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.318e-05/0.3508, allocations: 7.984 kB / 1.072 GB, free: 7.199 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.3508, allocations: 3.938 kB / 1.072 GB, free: 7.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.39e-05/0.3508, allocations: 4 kB / 1.072 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.571e-06/0.3509, allocations: 0 / 1.072 GB, free: 7.191 MB / 0.8419 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.0001442/0.351, allocations: 181.8 kB / 1.072 GB, free: 7.004 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.3511, allocations: 35.61 kB / 1.072 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000209/0.3513, allocations: 96.2 kB / 1.072 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.3513, allocations: 3.938 kB / 1.072 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3513, allocations: 0 / 1.072 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3513, allocations: 0 / 1.072 GB, free: 6.859 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.3516, allocations: 285.5 kB / 1.072 GB, free: 6.531 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3516, allocations: 4 kB / 1.072 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.669e-05/0.3517, allocations: 8 kB / 1.072 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.482e-06/0.3517, allocations: 0 / 1.072 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.3517, allocations: 4 kB / 1.072 GB, free: 6.516 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3517, allocations: 7.875 kB / 1.072 GB, free: 6.508 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3517, allocations: 4 kB / 1.072 GB, free: 6.504 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.3519, allocations: 183.1 kB / 1.072 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.957e-05/0.352, allocations: 116.7 kB / 1.073 GB, free: 6.176 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.827e-05/0.3521, allocations: 4 kB / 1.073 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.669e-05/0.3522, allocations: 11.92 kB / 1.073 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.25e-05/0.3522, allocations: 0 / 1.073 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.3522, allocations: 4 kB / 1.073 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004209/0.3527, allocations: 415.1 kB / 1.073 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3527, allocations: 0 / 1.073 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002552/0.3529, allocations: 23.98 kB / 1.073 GB, free: 5.727 MB / 0.8419 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.0008315/0.3538, allocations: 361.3 kB / 1.073 GB, free: 5.496 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001586/0.3539, allocations: 39.91 kB / 1.073 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3539, allocations: 0 / 1.073 GB, free: 5.457 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 5.085e-05/0.354, allocations: 15.98 kB / 1.073 GB, free: 5.441 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004146/0.3544, allocations: 47.2 kB / 1.073 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000821/0.3553, allocations: 0.5507 MB / 1.074 GB, free: 4.816 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.3556, allocations: 0.7792 MB / 1.075 GB, free: 4.012 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.794e-05/0.3557, allocations: 31.36 kB / 1.075 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of SimCode: time 3.21e-07/0.3557, allocations: 0 / 1.075 GB, free: 3.984 MB / 0.8419 GB Notification: Performance of Templates: time 0.005389/0.3611, allocations: 3.533 MB / 1.078 GB, free: 468 kB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches