Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001572/0.001572, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001909/0.001909, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.893/2.893, allocations: 437.7 MB / 0.7117 GB, free: 7.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003855/0.0003857, allocations: 8 kB / 0.8722 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7872/0.7876, allocations: 153.8 MB / 1.022 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002089/0.7897, allocations: 1.453 MB / 1.024 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001327/0.7911, allocations: 0.8544 MB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.736e-05/0.7912, allocations: 8 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004951/0.7917, allocations: 160.1 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003195/0.792, allocations: 131.6 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000416/0.7924, allocations: 171.6 kB / 1.025 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002607/0.7927, allocations: 203.5 kB / 1.025 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.7929, allocations: 37.84 kB / 1.025 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.793, allocations: 83.61 kB / 1.025 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001967/0.7932, allocations: 127.6 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.917e-05/0.7932, allocations: 8 kB / 1.026 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 8.593e-05/0.7933, allocations: 39.91 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.745e-05/0.7934, allocations: 67.75 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.518e-05/0.7935, allocations: 65.52 kB / 1.026 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003225/0.7938, allocations: 289.3 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.7939, allocations: 0 / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7939, allocations: 0 / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.791e-06/0.7939, allocations: 4 kB / 1.026 GB, free: 12.37 MB / 0.7794 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.000762/0.7946, allocations: 0.5602 MB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.7947, allocations: 8.031 kB / 1.027 GB, free: 11.75 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.777e-05/0.7948, allocations: 31.62 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005323/0.7953, allocations: 397.3 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.7953, allocations: 0 / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.7953, allocations: 8 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.7955, allocations: 89.48 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.7955, allocations: 3.984 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.7956, allocations: 4 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.7956, allocations: 4 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000128/0.7957, allocations: 47.97 kB / 1.027 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005927/0.7963, allocations: 492.3 kB / 1.028 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001207/0.7964, allocations: 50.5 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.245e-05/0.7965, allocations: 20.92 kB / 1.028 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.7965, allocations: 7.969 kB / 1.028 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.7966, allocations: 34.56 kB / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.7966, allocations: 0 / 1.028 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0002947/0.7969, allocations: 101.3 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.7969, allocations: 55.41 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006616/0.7976, allocations: 0.5523 MB / 1.028 GB, free: 9.734 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.7976, allocations: 25.7 kB / 1.028 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/0.7978, allocations: 180 kB / 1.029 GB, free: 9.523 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.729e-05/0.7978, allocations: 3.906 kB / 1.029 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.7978, allocations: 3.938 kB / 1.029 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.7979, allocations: 350.8 kB / 1.029 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.374e-05/0.798, allocations: 12 kB / 1.029 GB, free: 9.152 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.105e-05/0.798, allocations: 15.98 kB / 1.029 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.262e-05/0.7981, allocations: 23.98 kB / 1.029 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.7981, allocations: 0 / 1.029 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001589/0.7983, allocations: 85.3 kB / 1.029 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.7983, allocations: 8 kB / 1.029 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.7983, allocations: 0 / 1.029 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.16e-05/0.7983, allocations: 0 / 1.029 GB, free: 9.016 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-05/0.7984, allocations: 8.109 kB / 1.029 GB, free: 9.008 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.7984, allocations: 3.938 kB / 1.029 GB, free: 9.004 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.432e-05/0.7985, allocations: 15.92 kB / 1.029 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.7985, allocations: 4 kB / 1.029 GB, free: 8.984 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001663/0.7987, allocations: 181.7 kB / 1.029 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.328e-05/0.7988, allocations: 31.62 kB / 1.029 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000226/0.799, allocations: 100.5 kB / 1.029 GB, free: 8.656 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.799, allocations: 8.031 kB / 1.029 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.799, allocations: 4 kB / 1.029 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.799, allocations: 0 / 1.029 GB, free: 8.645 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003011/0.7993, allocations: 289.5 kB / 1.03 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7993, allocations: 0 / 1.03 GB, free: 8.312 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.347e-05/0.7994, allocations: 11.98 kB / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.7994, allocations: 0 / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.7994, allocations: 0 / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.7994, allocations: 0 / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7994, allocations: 0 / 1.03 GB, free: 8.301 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002144/0.7997, allocations: 199 kB / 1.03 GB, free: 8.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001073/0.7998, allocations: 120.7 kB / 1.03 GB, free: 7.953 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.7998, allocations: 4 kB / 1.03 GB, free: 7.949 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.682e-05/0.7999, allocations: 7.984 kB / 1.03 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.712e-05/0.7999, allocations: 4 kB / 1.03 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.767e-06/0.7999, allocations: 0 / 1.03 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0004781/0.8004, allocations: 423.1 kB / 1.03 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8004, allocations: 0 / 1.03 GB, free: 7.523 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002664/0.8007, allocations: 23.91 kB / 1.03 GB, free: 7.5 MB / 0.7794 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008887/0.8016, allocations: 353.6 kB / 1.031 GB, free: 7.281 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001528/0.8018, allocations: 43.91 kB / 1.031 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8018, allocations: 0 / 1.031 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.504e-05/0.8019, allocations: 16 kB / 1.031 GB, free: 7.223 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004893/0.8024, allocations: 43.02 kB / 1.031 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008621/0.8032, allocations: 0.5548 MB / 1.031 GB, free: 6.602 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.8036, allocations: 0.7834 MB / 1.032 GB, free: 5.793 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0001195/0.8038, allocations: 51.08 kB / 1.032 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.527e-05/0.8038, allocations: 19.44 kB / 1.032 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of SimCode: time 5.81e-07/0.8038, allocations: 3.938 kB / 1.032 GB, free: 5.723 MB / 0.7794 GB Notification: Performance of Templates: time 0.006019/0.8099, allocations: 2.288 MB / 1.034 GB, free: 3.453 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches