Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.399/1.399, allocations: 249.3 MB / 261.8 MB, free: 5.934 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001121/0.001122, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.48/1.48, allocations: 205.2 MB / 0.572 GB, free: 10.67 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008134/0.0008134, allocations: 86.53 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.389e-05, allocations: 0 / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2242, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.806/1.03, allocations: 134.8 MB / 1.023 GB, free: 15.96 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000281/1.031, allocations: 96.73 kB / 1.024 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01359/1.044, allocations: 5.296 MB / 1.029 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.693e-06/1.044, allocations: 0 / 1.029 GB, free: 11.42 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.841e-05/1.044, allocations: 7.984 kB / 1.029 GB, free: 11.41 MB / 0.6511 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.0005509/1.045, allocations: 0.4919 MB / 1.029 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/1.045, allocations: 12.03 kB / 1.029 GB, free: 10.88 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.936e-05/1.045, allocations: 31.62 kB / 1.029 GB, free: 10.85 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006592/1.046, allocations: 425.5 kB / 1.03 GB, free: 10.46 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/1.046, allocations: 7.922 kB / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.792e-05/1.046, allocations: 7.75 kB / 1.03 GB, free: 10.45 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/1.046, allocations: 69.19 kB / 1.03 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/1.046, allocations: 0 / 1.03 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.279e-05/1.046, allocations: 0 / 1.03 GB, free: 10.39 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/1.046, allocations: 7.938 kB / 1.03 GB, free: 10.38 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.408e-05/1.046, allocations: 37.17 kB / 1.03 GB, free: 10.36 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006912/1.047, allocations: 0.4971 MB / 1.03 GB, free: 9.898 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 9.234e-05/1.047, allocations: 36.58 kB / 1.03 GB, free: 9.859 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.329e-05/1.047, allocations: 16.11 kB / 1.03 GB, free: 9.844 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/1.047, allocations: 16 kB / 1.03 GB, free: 9.828 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/1.047, allocations: 38.02 kB / 1.03 GB, free: 9.785 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/1.047, allocations: 0 / 1.03 GB, free: 9.785 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0001891/1.047, allocations: 79.81 kB / 1.03 GB, free: 9.707 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/1.047, allocations: 51.52 kB / 1.03 GB, free: 9.645 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005904/1.048, allocations: 0.4922 MB / 1.031 GB, free: 9.258 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/1.048, allocations: 25.7 kB / 1.031 GB, free: 9.227 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/1.048, allocations: 177.9 kB / 1.031 GB, free: 9.105 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/1.048, allocations: 11.59 kB / 1.031 GB, free: 9.098 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/1.048, allocations: 0 / 1.031 GB, free: 9.098 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001352/1.048, allocations: 341.2 kB / 1.031 GB, free: 8.766 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.454e-05/1.048, allocations: 11.42 kB / 1.031 GB, free: 8.758 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.663e-05/1.048, allocations: 7.625 kB / 1.031 GB, free: 8.754 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.531e-05/1.048, allocations: 15.31 kB / 1.032 GB, free: 8.742 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.048, allocations: 0 / 1.032 GB, free: 8.742 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001186/1.048, allocations: 76.44 kB / 1.032 GB, free: 8.668 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/1.048, allocations: 8 kB / 1.032 GB, free: 8.66 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.718e-06/1.048, allocations: 4 kB / 1.032 GB, free: 8.656 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/1.048, allocations: 3.953 kB / 1.032 GB, free: 8.652 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.939e-05/1.048, allocations: 7.984 kB / 1.032 GB, free: 8.645 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/1.048, allocations: 4 kB / 1.032 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.316e-05/1.048, allocations: 0 / 1.032 GB, free: 8.641 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/1.048, allocations: 4.188 kB / 1.032 GB, free: 8.637 MB / 0.6511 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 () * 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 6.1e-05/1.049, allocations: 101 kB / 1.032 GB, free: 8.531 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.681e-05/1.049, allocations: 27.62 kB / 1.032 GB, free: 8.504 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000196/1.049, allocations: 114.3 kB / 1.032 GB, free: 8.398 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/1.049, allocations: 3.953 kB / 1.032 GB, free: 8.395 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/1.049, allocations: 0 / 1.032 GB, free: 8.395 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/1.049, allocations: 4 kB / 1.032 GB, free: 8.391 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002972/1.049, allocations: 299.2 kB / 1.032 GB, free: 8.098 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/1.049, allocations: 4 kB / 1.032 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.005e-05/1.049, allocations: 7.984 kB / 1.032 GB, free: 8.086 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/1.049, allocations: 0 / 1.032 GB, free: 8.086 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/1.049, allocations: 4 kB / 1.032 GB, free: 8.082 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/1.049, allocations: 4 kB / 1.032 GB, free: 8.078 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/1.049, allocations: 7.953 kB / 1.032 GB, free: 8.07 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/1.049, allocations: 178 kB / 1.032 GB, free: 7.891 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/1.05, allocations: 138.3 kB / 1.032 GB, free: 7.746 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/1.05, allocations: 4 kB / 1.032 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.167e-05/1.05, allocations: 3.75 kB / 1.032 GB, free: 7.742 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/1.05, allocations: 4 kB / 1.032 GB, free: 7.738 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-06/1.05, allocations: 11.88 kB / 1.032 GB, free: 7.727 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000438/1.05, allocations: 401.7 kB / 1.033 GB, free: 7.43 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.3e-07/1.05, allocations: 0 / 1.033 GB, free: 7.43 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002567/1.051, allocations: 31.48 kB / 1.033 GB, free: 7.402 MB / 0.6511 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 () * 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.0007877/1.051, allocations: 316.8 kB / 1.033 GB, free: 7.164 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001011/1.051, allocations: 27.05 kB / 1.033 GB, free: 7.145 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.051, allocations: 0 / 1.033 GB, free: 7.145 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.627e-05/1.051, allocations: 11.88 kB / 1.033 GB, free: 7.137 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/1.052, allocations: 47.08 kB / 1.033 GB, free: 7.105 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006657/1.052, allocations: 398.3 kB / 1.034 GB, free: 6.758 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/1.053, allocations: 0.793 MB / 1.034 GB, free: 5.957 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001146/1.053, allocations: 46.06 kB / 1.034 GB, free: 5.91 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.898e-05/1.053, allocations: 27.05 kB / 1.035 GB, free: 5.887 MB / 0.6511 GB Notification: Performance of SimCode: time 3.21e-07/1.053, allocations: 3.938 kB / 1.035 GB, free: 5.883 MB / 0.6511 GB Notification: Performance of Templates: time 0.005887/1.059, allocations: 2.553 MB / 1.037 GB, free: 3.34 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.csv","../files/Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches