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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001058/0.001058, allocations: 90.98 kB / 15.36 MB, free: 0.7383 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.009762/0.009762, allocations: 171.3 kB / 16.26 MB, free: 6.613 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.476/1.476, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.059/3.059, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003937/0.0003937, allocations: 10.28 kB / 0.9027 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3298, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002325/0.3321, allocations: 1.486 MB / 1.06 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001394/0.3335, allocations: 0.9005 MB / 1.061 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.653e-05/0.3336, allocations: 4 kB / 1.061 GB, free: 2.551 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005035/0.3341, allocations: 168.9 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.000314/0.3344, allocations: 146.4 kB / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.3349, allocations: 194.3 kB / 1.061 GB, free: 2.062 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.3352, allocations: 227.5 kB / 1.062 GB, free: 1.84 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001498/0.3353, allocations: 49.66 kB / 1.062 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.3355, allocations: 79.61 kB / 1.062 GB, free: 1.715 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002044/0.3357, allocations: 131.6 kB / 1.062 GB, free: 1.586 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.715e-05/0.3357, allocations: 4 kB / 1.062 GB, free: 1.582 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.693e-05/0.3358, allocations: 35.98 kB / 1.062 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.888e-05/0.3359, allocations: 75.69 kB / 1.062 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001109/0.336, allocations: 120.9 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003281/0.3364, allocations: 335 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3364, allocations: 7.984 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.573e-06/0.3364, allocations: 0 / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.539e-06/0.3364, allocations: 0 / 1.062 GB, free: 1.012 MB / 0.8106 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.0006884/0.3371, allocations: 0.5538 MB / 1.063 GB, free: 420 kB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.427e-05/0.3371, allocations: 12.03 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.687e-05/0.3372, allocations: 36.56 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005437/0.3378, allocations: 414.2 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.297e-05/0.3378, allocations: 4.375 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.3378, allocations: 8.125 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001729/0.338, allocations: 81.66 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.338, allocations: 0 / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.13e-05/0.338, allocations: 0 / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-06/0.338, allocations: 0 / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.3382, allocations: 51.97 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006118/0.3388, allocations: 484.4 kB / 1.064 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000138/0.3389, allocations: 62.47 kB / 1.064 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.605e-05/0.339, allocations: 16.92 kB / 1.064 GB, free: 15.16 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.339, allocations: 4.109 kB / 1.064 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.742e-05/0.3391, allocations: 38.48 kB / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.3391, allocations: 0 / 1.064 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0002924/0.3394, allocations: 113.3 kB / 1.064 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.3394, allocations: 51.41 kB / 1.064 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006442/0.3401, allocations: 0.56 MB / 1.065 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.3401, allocations: 25.7 kB / 1.065 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.3402, allocations: 176 kB / 1.065 GB, free: 14.15 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.929e-05/0.3403, allocations: 7.844 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.3403, allocations: 13.72 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3404, allocations: 338.8 kB / 1.065 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.283e-05/0.3405, allocations: 19.98 kB / 1.065 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.274e-05/0.3405, allocations: 19.98 kB / 1.065 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.3407, allocations: 36.84 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3407, allocations: 0 / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001671/0.3408, allocations: 97.3 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.3409, allocations: 4 kB / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.3409, allocations: 0 / 1.066 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3409, allocations: 7.875 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.42e-05/0.341, allocations: 8 kB / 1.066 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.341, allocations: 3.984 kB / 1.066 GB, free: 13.58 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.496e-05/0.3411, allocations: 7.984 kB / 1.066 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.3411, allocations: 0 / 1.066 GB, free: 13.57 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.0001596/0.3412, allocations: 182.3 kB / 1.066 GB, free: 13.38 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.952e-05/0.3413, allocations: 27.62 kB / 1.066 GB, free: 13.36 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002235/0.3415, allocations: 104.2 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.3415, allocations: 3.938 kB / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.808e-06/0.3415, allocations: 0 / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.3415, allocations: 0 / 1.066 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002963/0.3418, allocations: 285.5 kB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3419, allocations: 4 kB / 1.066 GB, free: 12.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.15e-05/0.3419, allocations: 15.92 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3419, allocations: 0 / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.3419, allocations: 4 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.3419, allocations: 3.938 kB / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3419, allocations: 0 / 1.066 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000206/0.3422, allocations: 183.5 kB / 1.066 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3423, allocations: 136.7 kB / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.3423, allocations: 0 / 1.066 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.101e-05/0.3424, allocations: 7.922 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.3424, allocations: 8 kB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.3424, allocations: 0 / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004364/0.3429, allocations: 419.1 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3429, allocations: 0 / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002591/0.3432, allocations: 27.98 kB / 1.067 GB, free: 12.09 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.0007913/0.344, allocations: 361.9 kB / 1.067 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001592/0.3441, allocations: 39.97 kB / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3441, allocations: 0 / 1.067 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.56e-05/0.3442, allocations: 19.98 kB / 1.067 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.3446, allocations: 35.08 kB / 1.067 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007976/0.3454, allocations: 0.5936 MB / 1.068 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.3458, allocations: 0.7834 MB / 1.069 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001034/0.3459, allocations: 50.91 kB / 1.069 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.346, allocations: 23.44 kB / 1.069 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of SimCode: time 3.21e-07/0.346, allocations: 0 / 1.069 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of Templates: time 0.005476/0.3514, allocations: 2.319 MB / 1.071 GB, free: 7.984 MB / 0.8262 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