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.001247/0.001246, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001241/0.001241, allocations: 194.9 kB / 16.25 MB, free: 6.621 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.428/1.428, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.851/2.851, allocations: 461.9 MB / 0.7343 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 64 kB / 0.8986 GB, free: 37.14 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3084, allocations: 157.4 MB / 1.052 GB, free: 8.77 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003822/0.3123, allocations: 1.836 MB / 1.054 GB, free: 6.918 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.3138, allocations: 0.916 MB / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.314, allocations: 0 / 1.055 GB, free: 5.996 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005838/0.3146, allocations: 170.9 kB / 1.055 GB, free: 5.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004797/0.3151, allocations: 155.6 kB / 1.055 GB, free: 5.68 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005519/0.3156, allocations: 189.3 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0003805/0.316, allocations: 243.5 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001892/0.3162, allocations: 57.64 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002398/0.3165, allocations: 99.61 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.3167, allocations: 159.5 kB / 1.056 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.022e-05/0.3168, allocations: 20 kB / 1.056 GB, free: 4.934 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.3169, allocations: 40 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.317, allocations: 91.67 kB / 1.056 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000117/0.3171, allocations: 119.2 kB / 1.056 GB, free: 4.688 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003929/0.3175, allocations: 347.1 kB / 1.057 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3175, allocations: 0 / 1.057 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3175, allocations: 0 / 1.057 GB, free: 4.348 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.3176, allocations: 3.938 kB / 1.057 GB, free: 4.344 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.0008187/0.3184, allocations: 0.6069 MB / 1.057 GB, free: 3.688 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.3184, allocations: 8.625 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.233e-05/0.3185, allocations: 36.56 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005538/0.3191, allocations: 414.2 kB / 1.058 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.253e-05/0.3191, allocations: 384 / 1.058 GB, free: 3.203 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.85e-05/0.3191, allocations: 12.12 kB / 1.058 GB, free: 3.191 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/0.3193, allocations: 73.66 kB / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.3193, allocations: 0 / 1.058 GB, free: 3.113 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.3193, allocations: 4 kB / 1.058 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.3193, allocations: 4 kB / 1.058 GB, free: 3.105 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001211/0.3195, allocations: 47.97 kB / 1.058 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005716/0.3201, allocations: 480.5 kB / 1.058 GB, free: 2.539 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.3202, allocations: 58.56 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.111e-05/0.3202, allocations: 16.97 kB / 1.058 GB, free: 2.453 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.3203, allocations: 7.922 kB / 1.058 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.3203, allocations: 30.56 kB / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.3203, allocations: 0 / 1.058 GB, free: 2.406 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002772/0.3206, allocations: 101.2 kB / 1.058 GB, free: 2.301 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.3206, allocations: 51.41 kB / 1.058 GB, free: 2.238 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005878/0.3212, allocations: 0.5639 MB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.3213, allocations: 25.7 kB / 1.059 GB, free: 1.637 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3214, allocations: 172 kB / 1.059 GB, free: 1.465 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.3214, allocations: 19.73 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.446e-05/0.3214, allocations: 13.72 kB / 1.059 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3216, allocations: 346.8 kB / 1.06 GB, free: 1.078 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.845e-05/0.3216, allocations: 8 kB / 1.06 GB, free: 1.07 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.389e-05/0.3217, allocations: 15.98 kB / 1.06 GB, free: 1.055 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.672e-05/0.3218, allocations: 36.84 kB / 1.06 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3218, allocations: 0 / 1.06 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000169/0.322, allocations: 89.3 kB / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.322, allocations: 8 kB / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.322, allocations: 0 / 1.06 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.322, allocations: 7.875 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.832e-05/0.3221, allocations: 7.984 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.3221, allocations: 0 / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.157e-05/0.3222, allocations: 8 kB / 1.06 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.3222, allocations: 0 / 1.06 GB, free: 0.8906 MB / 0.8106 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.0001581/0.3224, allocations: 179.3 kB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.3224, allocations: 27.62 kB / 1.06 GB, free: 0.6797 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002164/0.3226, allocations: 100.2 kB / 1.06 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.3227, allocations: 3.938 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.3227, allocations: 3.938 kB / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3227, allocations: 0 / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002807/0.323, allocations: 293.5 kB / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.323, allocations: 0 / 1.06 GB, free: 232 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.689e-05/0.323, allocations: 7.938 kB / 1.06 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3231, allocations: 0 / 1.06 GB, free: 224 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.3231, allocations: 4 kB / 1.06 GB, free: 220 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.3231, allocations: 3.938 kB / 1.06 GB, free: 216 kB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3231, allocations: 3.984 kB / 1.06 GB, free: 212 kB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.3233, allocations: 195.5 kB / 1.061 GB, free: 16 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.47e-05/0.3234, allocations: 112.8 kB / 1.061 GB, free: 15.87 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.3235, allocations: 4 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.003e-05/0.3236, allocations: 7.922 kB / 1.061 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.3236, allocations: 4 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.3236, allocations: 0 / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000415/0.324, allocations: 415.1 kB / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.324, allocations: 0 / 1.061 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002566/0.3243, allocations: 35.91 kB / 1.061 GB, free: 15.41 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.0007946/0.3251, allocations: 352.6 kB / 1.061 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001643/0.3253, allocations: 35.97 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/0.3253, allocations: 4 kB / 1.061 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.738e-05/0.3253, allocations: 11.98 kB / 1.061 GB, free: 15.14 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004249/0.3258, allocations: 46.06 kB / 1.062 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000784/0.3266, allocations: 0.5802 MB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.3269, allocations: 0.7753 MB / 1.063 GB, free: 13.69 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001261/0.3271, allocations: 50.92 kB / 1.063 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.365e-05/0.3271, allocations: 19.44 kB / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3271, allocations: 0 / 1.063 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of Templates: time 0.005974/0.3331, allocations: 2.443 MB / 1.065 GB, free: 11.23 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