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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.00181/0.00181, allocations: 106.8 kB / 16.41 MB, free: 6.5 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.00202/0.00202, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.424/1.424, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.649/2.649, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 68.11 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9921/0.9942, allocations: 151.6 MB / 1.167 GB, free: 3.84 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.003755/0.998, allocations: 1.763 MB / 1.169 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001663/0.9997, allocations: 0.9241 MB / 1.17 GB, free: 1.137 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.848e-05/0.9998, allocations: 3.938 kB / 1.17 GB, free: 1.133 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0006623/1, allocations: 184.3 kB / 1.17 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0004427/1.001, allocations: 172.5 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005219/1.001, allocations: 200 kB / 1.17 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0003732/1.002, allocations: 243.5 kB / 1.171 GB, free: 368 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/1.002, allocations: 57.58 kB / 1.171 GB, free: 308 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/1.002, allocations: 95.67 kB / 1.171 GB, free: 212 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/1.002, allocations: 155.5 kB / 1.171 GB, free: 56 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.167e-05/1.003, allocations: 20 kB / 1.171 GB, free: 36 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/1.003, allocations: 52.03 kB / 1.171 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001237/1.003, allocations: 83.7 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0001406/1.003, allocations: 115.2 kB / 1.171 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0004886/1.003, allocations: 359.1 kB / 1.172 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/1.003, allocations: 3.938 kB / 1.172 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.473e-06/1.003, allocations: 0 / 1.172 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.202e-05/1.003, allocations: 0 / 1.172 GB, free: 15.44 MB / 0.9044 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.0009951/1.004, allocations: 0.6184 MB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/1.005, allocations: 12.92 kB / 1.172 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.607e-05/1.005, allocations: 32.7 kB / 1.172 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006251/1.005, allocations: 414.6 kB / 1.173 GB, free: 14.28 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/1.005, allocations: 8.375 kB / 1.173 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.148e-05/1.005, allocations: 12.12 kB / 1.173 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/1.006, allocations: 73.66 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/1.006, allocations: 0 / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/1.006, allocations: 4 kB / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/1.006, allocations: 0 / 1.173 GB, free: 14.18 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/1.006, allocations: 43.97 kB / 1.173 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007114/1.006, allocations: 480.5 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/1.007, allocations: 54.55 kB / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.035e-05/1.007, allocations: 16.92 kB / 1.173 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/1.007, allocations: 3.938 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/1.007, allocations: 34.55 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=3): time 1.183e-06/1.007, allocations: 0 / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3): time 0.000318/1.007, allocations: 113.4 kB / 1.173 GB, free: 13.37 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.204e-05/1.007, allocations: 51.41 kB / 1.174 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007137/1.008, allocations: 0.5484 MB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/1.008, allocations: 29.7 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001662/1.008, allocations: 176 kB / 1.174 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.644e-05/1.008, allocations: 11.94 kB / 1.174 GB, free: 12.53 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.985e-05/1.008, allocations: 13.72 kB / 1.174 GB, free: 12.51 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001909/1.008, allocations: 342.8 kB / 1.175 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.271e-05/1.008, allocations: 19.98 kB / 1.175 GB, free: 12.14 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.869e-05/1.008, allocations: 11.92 kB / 1.175 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/1.009, allocations: 37.12 kB / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/1.009, allocations: 0 / 1.175 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000175/1.009, allocations: 93.42 kB / 1.175 GB, free: 12 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/1.009, allocations: 8 kB / 1.175 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/1.009, allocations: 0 / 1.175 GB, free: 11.99 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/1.009, allocations: 3.938 kB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.823e-05/1.009, allocations: 11.98 kB / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/1.009, allocations: 4 kB / 1.175 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.097e-05/1.009, allocations: 3.938 kB / 1.175 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/1.009, allocations: 0 / 1.175 GB, free: 11.96 MB / 0.9044 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.0001839/1.009, allocations: 185.8 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/1.009, allocations: 27.81 kB / 1.175 GB, free: 11.75 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000242/1.009, allocations: 104.1 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/1.01, allocations: 7.938 kB / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/1.01, allocations: 0 / 1.175 GB, free: 11.63 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/1.01, allocations: 4 kB / 1.175 GB, free: 11.62 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/1.01, allocations: 281.5 kB / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/1.01, allocations: 0 / 1.175 GB, free: 11.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-05/1.01, allocations: 7.984 kB / 1.175 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/1.01, allocations: 4.109 kB / 1.175 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/1.01, allocations: 7.938 kB / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.134e-06/1.01, allocations: 3.938 kB / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/1.01, allocations: 0 / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002529/1.01, allocations: 191.2 kB / 1.176 GB, free: 11.07 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/1.01, allocations: 116.9 kB / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/1.01, allocations: 4 kB / 1.176 GB, free: 10.94 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.768e-05/1.011, allocations: 3.938 kB / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.113e-05/1.011, allocations: 7.984 kB / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/1.011, allocations: 0 / 1.176 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0004992/1.011, allocations: 419.1 kB / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/1.011, allocations: 0 / 1.176 GB, free: 10.52 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002653/1.011, allocations: 27.94 kB / 1.176 GB, free: 10.49 MB / 0.9044 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.001335/1.013, allocations: 346.8 kB / 1.176 GB, free: 10.28 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000175/1.013, allocations: 47.89 kB / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/1.013, allocations: 0 / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.675e-05/1.013, allocations: 16 kB / 1.177 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/1.013, allocations: 40.17 kB / 1.177 GB, free: 10.18 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009075/1.014, allocations: 0.5132 MB / 1.177 GB, free: 9.641 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004713/1.015, allocations: 0.787 MB / 1.178 GB, free: 8.828 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001108/1.015, allocations: 42.92 kB / 1.178 GB, free: 8.781 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.645e-05/1.015, allocations: 31.42 kB / 1.178 GB, free: 8.75 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/1.015, allocations: 3.938 kB / 1.178 GB, free: 8.746 MB / 0.9044 GB Notification: Performance of Templates: time 0.006957/1.022, allocations: 2.492 MB / 1.18 GB, free: 6.277 MB / 0.9044 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 -s cvode -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/jenkins1/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