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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.361/2.361, allocations: 393.5 MB / 408.4 MB, free: 11.03 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 187.1 kB / 0.4902 GB, free: 2.238 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.78/1.78, allocations: 223.1 MB / 0.7992 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009326/0.0009327, allocations: 101.9 kB / 0.9396 GB, free: 2.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004801/0.0004801, allocations: 8.25 kB / 1.09 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3523, allocations: 143 MB / 1.229 GB, free: 85.48 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2477/0.6, allocations: 153.6 MB / 1.379 GB, free: 11.68 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003667/0.6004, allocations: 103.9 kB / 1.379 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01606/0.6165, allocations: 5.488 MB / 1.385 GB, free: 6.078 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.595e-06/0.6166, allocations: 0 / 1.385 GB, free: 6.078 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.275e-05/0.6167, allocations: 8 kB / 1.385 GB, free: 6.07 MB / 0.8855 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.000916/0.6176, allocations: 0.5759 MB / 1.385 GB, free: 5.445 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.331e-05/0.6177, allocations: 8.562 kB / 1.385 GB, free: 5.438 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.628e-05/0.6178, allocations: 39.62 kB / 1.385 GB, free: 5.398 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007166/0.6185, allocations: 433.1 kB / 1.386 GB, free: 4.938 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.6185, allocations: 4 kB / 1.386 GB, free: 4.934 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.661e-05/0.6185, allocations: 4 kB / 1.386 GB, free: 4.93 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000196/0.6187, allocations: 85.53 kB / 1.386 GB, free: 4.84 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.6188, allocations: 0 / 1.386 GB, free: 4.84 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.6188, allocations: 0 / 1.386 GB, free: 4.84 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.6188, allocations: 4 kB / 1.386 GB, free: 4.836 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.6189, allocations: 55.97 kB / 1.386 GB, free: 4.781 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007468/0.6197, allocations: 0.4886 MB / 1.386 GB, free: 4.242 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.6198, allocations: 50.56 kB / 1.386 GB, free: 4.184 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.6199, allocations: 0 / 1.386 GB, free: 4.184 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.6199, allocations: 42.69 kB / 1.386 GB, free: 4.133 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.6199, allocations: 3.938 kB / 1.386 GB, free: 4.129 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0003021/0.6202, allocations: 101.4 kB / 1.387 GB, free: 4.023 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.6203, allocations: 59.41 kB / 1.387 GB, free: 3.953 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006837/0.621, allocations: 0.5007 MB / 1.387 GB, free: 3.441 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.621, allocations: 25.7 kB / 1.387 GB, free: 3.41 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.6212, allocations: 175.9 kB / 1.387 GB, free: 3.234 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.6212, allocations: 7.906 kB / 1.387 GB, free: 3.227 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.6212, allocations: 0 / 1.387 GB, free: 3.227 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001794/0.6214, allocations: 347.1 kB / 1.388 GB, free: 2.879 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.205e-05/0.6214, allocations: 12 kB / 1.388 GB, free: 2.867 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.95e-05/0.6215, allocations: 15.98 kB / 1.388 GB, free: 2.852 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.491e-05/0.6216, allocations: 19.98 kB / 1.388 GB, free: 2.832 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.6216, allocations: 0 / 1.388 GB, free: 2.832 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001699/0.6217, allocations: 89.25 kB / 1.388 GB, free: 2.738 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.91e-05/0.6218, allocations: 8 kB / 1.388 GB, free: 2.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.6218, allocations: 3.953 kB / 1.388 GB, free: 2.727 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.6218, allocations: 7.984 kB / 1.388 GB, free: 2.719 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.136e-05/0.6219, allocations: 8 kB / 1.388 GB, free: 2.711 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.6219, allocations: 0 / 1.388 GB, free: 2.711 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.75e-05/0.622, allocations: 8 kB / 1.388 GB, free: 2.703 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.622, allocations: 336 / 1.388 GB, free: 2.703 MB / 0.8855 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.0001791/0.6222, allocations: 185.8 kB / 1.388 GB, free: 2.512 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.438e-05/0.6222, allocations: 27.62 kB / 1.388 GB, free: 2.484 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002469/0.6225, allocations: 112.1 kB / 1.388 GB, free: 2.363 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.6225, allocations: 3.953 kB / 1.388 GB, free: 2.359 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.6225, allocations: 0 / 1.388 GB, free: 2.359 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.6225, allocations: 3.984 kB / 1.388 GB, free: 2.355 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.6229, allocations: 305.4 kB / 1.388 GB, free: 2.008 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.6229, allocations: 0 / 1.388 GB, free: 2.008 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.111e-05/0.6229, allocations: 11.98 kB / 1.388 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.6229, allocations: 3.938 kB / 1.388 GB, free: 1.992 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.623, allocations: 4 kB / 1.388 GB, free: 1.988 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.623, allocations: 4 kB / 1.388 GB, free: 1.984 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.623, allocations: 3.953 kB / 1.388 GB, free: 1.98 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.6232, allocations: 187.2 kB / 1.389 GB, free: 1.781 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.6234, allocations: 132.7 kB / 1.389 GB, free: 1.633 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.509e-05/0.6234, allocations: 3.938 kB / 1.389 GB, free: 1.629 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.636e-05/0.6235, allocations: 11.94 kB / 1.389 GB, free: 1.617 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.05e-05/0.6236, allocations: 7.953 kB / 1.389 GB, free: 1.609 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.6236, allocations: 4 kB / 1.389 GB, free: 1.605 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0004783/0.6241, allocations: 403.1 kB / 1.389 GB, free: 1.219 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6241, allocations: 4 kB / 1.389 GB, free: 1.215 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002762/0.6243, allocations: 35.89 kB / 1.389 GB, free: 1.18 MB / 0.8855 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.000962/0.6253, allocations: 356.6 kB / 1.389 GB, free: 0.9531 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001589/0.6255, allocations: 31.97 kB / 1.39 GB, free: 0.9219 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6255, allocations: 8 kB / 1.39 GB, free: 0.9141 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 5.61e-05/0.6256, allocations: 27.92 kB / 1.39 GB, free: 0.8867 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.6259, allocations: 33.55 kB / 1.39 GB, free: 0.8516 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00089/0.6268, allocations: 0.5783 MB / 1.39 GB, free: 252 kB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004342/0.6272, allocations: 0.7872 MB / 1.391 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.000124/0.6274, allocations: 61.91 kB / 1.391 GB, free: 15.37 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.987e-05/0.6274, allocations: 27.42 kB / 1.391 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of SimCode: time 6.31e-07/0.6274, allocations: 0 / 1.391 GB, free: 15.34 MB / 0.9011 GB Notification: Performance of Templates: time 0.006259/0.6337, allocations: 2.542 MB / 1.393 GB, free: 12.84 MB / 0.9011 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","../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches