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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001102/0.001102, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.387/1.387, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.844/2.844, allocations: 472.6 MB / 0.7451 GB, free: 4.652 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 69.42 kB / 0.9121 GB, free: 33.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3375, allocations: 159.9 MB / 1.068 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00316/0.3407, allocations: 1.779 MB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001386/0.3421, allocations: 0.9123 MB / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.329e-05/0.3422, allocations: 4 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000579/0.3428, allocations: 192.7 kB / 1.071 GB, free: 7.473 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.000413/0.3432, allocations: 162.4 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004561/0.3437, allocations: 210.8 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002866/0.344, allocations: 239.5 kB / 1.072 GB, free: 6.879 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.3441, allocations: 53.64 kB / 1.072 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.3443, allocations: 99.61 kB / 1.072 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.3445, allocations: 155.5 kB / 1.072 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.353e-05/0.3446, allocations: 20 kB / 1.072 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.3447, allocations: 59.92 kB / 1.072 GB, free: 6.5 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001203/0.3448, allocations: 83.73 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001144/0.3449, allocations: 115.2 kB / 1.072 GB, free: 6.305 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.3453, allocations: 347.1 kB / 1.073 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3453, allocations: 0 / 1.073 GB, free: 5.965 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3454, allocations: 4 kB / 1.073 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.862e-06/0.3454, allocations: 0 / 1.073 GB, free: 5.961 MB / 0.8262 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.0007959/0.3462, allocations: 0.6069 MB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.3462, allocations: 12.02 kB / 1.073 GB, free: 5.293 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.909e-05/0.3463, allocations: 32.56 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005001/0.3468, allocations: 414.3 kB / 1.074 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.3468, allocations: 4.375 kB / 1.074 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.3468, allocations: 8.125 kB / 1.074 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.347, allocations: 73.67 kB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.347, allocations: 0 / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.347, allocations: 0 / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.347, allocations: 0 / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001264/0.3472, allocations: 47.91 kB / 1.074 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005798/0.3477, allocations: 496.4 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000122/0.3479, allocations: 46.5 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.393e-05/0.3479, allocations: 20.91 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.056e-05/0.348, allocations: 8 kB / 1.074 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.348, allocations: 34.56 kB / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.348, allocations: 0 / 1.074 GB, free: 4.016 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002747/0.3483, allocations: 105.4 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.804e-05/0.3483, allocations: 55.41 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006148/0.3489, allocations: 0.5561 MB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.349, allocations: 25.7 kB / 1.075 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.3491, allocations: 176 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.3491, allocations: 11.83 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/0.3492, allocations: 17.72 kB / 1.075 GB, free: 3.035 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3493, allocations: 338.8 kB / 1.076 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.124e-05/0.3494, allocations: 11.98 kB / 1.076 GB, free: 2.684 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.436e-05/0.3495, allocations: 19.97 kB / 1.076 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.478e-05/0.3496, allocations: 32.84 kB / 1.076 GB, free: 2.629 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3496, allocations: 4 kB / 1.076 GB, free: 2.625 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001662/0.3497, allocations: 93.23 kB / 1.076 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.3498, allocations: 4 kB / 1.076 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.3498, allocations: 0 / 1.076 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.3498, allocations: 7.938 kB / 1.076 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.447e-05/0.3499, allocations: 7.938 kB / 1.076 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.3499, allocations: 0 / 1.076 GB, free: 2.508 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.84e-05/0.35, allocations: 7.984 kB / 1.076 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.35, allocations: 0 / 1.076 GB, free: 2.5 MB / 0.8262 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.0001474/0.3501, allocations: 187.6 kB / 1.076 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.086e-05/0.3502, allocations: 27.62 kB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002066/0.3504, allocations: 100.2 kB / 1.076 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3504, allocations: 7.875 kB / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.065e-06/0.3504, allocations: 0 / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.3504, allocations: 0 / 1.076 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000268/0.3507, allocations: 281.5 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.3507, allocations: 0 / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.312e-05/0.3508, allocations: 11.98 kB / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.3508, allocations: 0 / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.345e-06/0.3508, allocations: 112 / 1.076 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-05/0.3508, allocations: 11.88 kB / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.3508, allocations: 0 / 1.076 GB, free: 1.816 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001957/0.351, allocations: 183.2 kB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.446e-05/0.3511, allocations: 112.7 kB / 1.077 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.064e-05/0.3512, allocations: 0 / 1.077 GB, free: 1.492 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.831e-05/0.3513, allocations: 15.94 kB / 1.077 GB, free: 1.477 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.96e-05/0.3513, allocations: 3.984 kB / 1.077 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/0.3513, allocations: 4 kB / 1.077 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004263/0.3517, allocations: 419 kB / 1.077 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3517, allocations: 0 / 1.077 GB, free: 1.062 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002621/0.352, allocations: 24 kB / 1.077 GB, free: 1.039 MB / 0.8262 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.0007969/0.3528, allocations: 361.3 kB / 1.077 GB, free: 0.8086 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000149/0.353, allocations: 35.97 kB / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.353, allocations: 0 / 1.077 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.399e-05/0.353, allocations: 12 kB / 1.077 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004399/0.3535, allocations: 51.03 kB / 1.077 GB, free: 0.7109 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007268/0.3542, allocations: 0.5097 MB / 1.078 GB, free: 180 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.3546, allocations: 0.787 MB / 1.079 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.851e-05/0.3547, allocations: 46.86 kB / 1.079 GB, free: 15.32 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.894e-05/0.3548, allocations: 27.42 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of SimCode: time 1.714e-06/0.3548, allocations: 4 kB / 1.079 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of Templates: time 0.005709/0.3605, allocations: 2.463 MB / 1.081 GB, free: 12.87 MB / 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/jenkins/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