Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.006493/0.006493, allocations: 102 kB / 15.73 MB, free: 6.062 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.001483/0.001484, allocations: 192.1 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.381/1.381, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.364/2.364, allocations: 390.2 MB / 0.6648 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.91 kB / 0.9508 GB, free: 7.652 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.039/1.04, allocations: 140.4 MB / 1.088 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003124/1.043, allocations: 1.766 MB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001351/1.045, allocations: 0.9167 MB / 1.091 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.34e-05/1.045, allocations: 5.344 kB / 1.091 GB, free: 3.668 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005478/1.045, allocations: 179.6 kB / 1.091 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000402/1.046, allocations: 171.1 kB / 1.091 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004886/1.046, allocations: 207.2 kB / 1.091 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003707/1.046, allocations: 249.8 kB / 1.091 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/1.047, allocations: 60.23 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001748/1.047, allocations: 93.83 kB / 1.091 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/1.047, allocations: 160 kB / 1.092 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.781e-05/1.047, allocations: 22.84 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/1.047, allocations: 42.25 kB / 1.092 GB, free: 3.176 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/1.047, allocations: 85.52 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.392e-05/1.047, allocations: 116.9 kB / 1.092 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004759/1.048, allocations: 361.3 kB / 1.092 GB, free: 2.91 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/1.048, allocations: 4 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.944e-06/1.048, allocations: 0.5938 kB / 1.092 GB, free: 2.906 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.853e-06/1.048, allocations: 0 / 1.092 GB, free: 2.906 MB / 0.8575 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.0007761/1.049, allocations: 0.6047 MB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/1.049, allocations: 13.56 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.808e-05/1.049, allocations: 35.41 kB / 1.093 GB, free: 2.352 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005275/1.049, allocations: 423.7 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/1.049, allocations: 2.469 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.61e-05/1.049, allocations: 11.44 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/1.05, allocations: 74.19 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/1.05, allocations: 1.125 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/1.05, allocations: 4.734 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/1.05, allocations: 1.594 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001391/1.05, allocations: 52.12 kB / 1.093 GB, free: 1.957 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005858/1.05, allocations: 477.2 kB / 1.094 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/1.051, allocations: 53.06 kB / 1.094 GB, free: 1.566 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.598e-05/1.051, allocations: 19.61 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.061e-05/1.051, allocations: 1.828 kB / 1.094 GB, free: 1.555 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.608e-05/1.051, allocations: 39.64 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/1.051, allocations: 0.75 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0003016/1.051, allocations: 101 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.262e-05/1.051, allocations: 52.22 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007186/1.052, allocations: 0.5526 MB / 1.095 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.136e-06/1.052, allocations: 26.64 kB / 1.095 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/1.052, allocations: 173.4 kB / 1.095 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/1.052, allocations: 25.77 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/1.052, allocations: 14.17 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.384e-05/1.052, allocations: 342.4 kB / 1.095 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.456e-05/1.052, allocations: 13.86 kB / 1.095 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.419e-05/1.052, allocations: 17.81 kB / 1.095 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/1.052, allocations: 34.75 kB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/1.052, allocations: 0.5312 kB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001771/1.052, allocations: 87.88 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/1.052, allocations: 5.5 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/1.053, allocations: 0.7031 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/1.053, allocations: 4.469 kB / 1.095 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.942e-05/1.053, allocations: 12.39 kB / 1.095 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/1.053, allocations: 3.984 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.719e-05/1.053, allocations: 10.83 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/1.053, allocations: 2.266 kB / 1.095 GB, free: 0.5078 MB / 0.8575 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.000148/1.053, allocations: 181.4 kB / 1.096 GB, free: 376 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.708e-05/1.053, allocations: 32.2 kB / 1.096 GB, free: 356 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002208/1.053, allocations: 98.5 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/1.053, allocations: 5.453 kB / 1.096 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.053, allocations: 1.062 kB / 1.096 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/1.053, allocations: 0 / 1.096 GB, free: 288 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002839/1.053, allocations: 284.9 kB / 1.096 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/1.053, allocations: 4.719 kB / 1.096 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.018e-05/1.054, allocations: 10.86 kB / 1.096 GB, free: 44 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/1.054, allocations: 8.938 kB / 1.096 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/1.054, allocations: 1.797 kB / 1.096 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/1.054, allocations: 3.938 kB / 1.096 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.054, allocations: 0.6094 kB / 1.096 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002358/1.054, allocations: 180.1 kB / 1.096 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/1.054, allocations: 118.5 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/1.054, allocations: 1.828 kB / 1.096 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.579e-05/1.054, allocations: 9.703 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.399e-05/1.054, allocations: 6.812 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/1.054, allocations: 1.031 kB / 1.096 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0005713/1.055, allocations: 419.3 kB / 1.097 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.51e-07/1.055, allocations: 0 / 1.097 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002767/1.055, allocations: 29.69 kB / 1.097 GB, free: 15.56 MB / 0.8731 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.0008466/1.056, allocations: 356.9 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001782/1.056, allocations: 33.69 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/1.056, allocations: 0 / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.812e-05/1.056, allocations: 16.97 kB / 1.097 GB, free: 15.37 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004607/1.057, allocations: 41.66 kB / 1.097 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008863/1.057, allocations: 0.5063 MB / 1.098 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005456/1.058, allocations: 0.7852 MB / 1.098 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001343/1.058, allocations: 54.28 kB / 1.098 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.339e-05/1.058, allocations: 22.91 kB / 1.098 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of SimCode: time 5.11e-07/1.058, allocations: 0 / 1.098 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of Templates: time 0.006602/1.065, allocations: 2.484 MB / 1.101 GB, free: 14.06 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches