Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.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.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.384/2.384, allocations: 393.5 MB / 408.4 MB, free: 11.05 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.001103/0.001103, allocations: 187 kB / 0.4902 GB, free: 2.25 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.579/1.579, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.001071/0.001071, allocations: 90.64 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 13.33 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2755/0.2758, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.192/0.4679, allocations: 150.7 MB / 1.376 GB, free: 2.867 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00021/0.4682, allocations: 71.97 kB / 1.376 GB, free: 2.797 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01289/0.4811, allocations: 4.379 MB / 1.381 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.553e-06/0.4811, allocations: 0 / 1.381 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 6.211e-06/0.4812, allocations: 0 / 1.381 GB, free: 14.41 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004432/0.4816, allocations: 380.4 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.4817, allocations: 8.031 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.867e-05/0.4817, allocations: 0 / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.4818, allocations: 171 kB / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.4819, allocations: 0 / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.4819, allocations: 4 kB / 1.381 GB, free: 13.77 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.4821, allocations: 53.66 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.4821, allocations: 11.94 kB / 1.381 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.4821, allocations: 4 kB / 1.381 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.4821, allocations: 0 / 1.381 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001732/0.4823, allocations: 43.91 kB / 1.381 GB, free: 13.66 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004405/0.4827, allocations: 272.8 kB / 1.382 GB, free: 13.34 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.4829, allocations: 46.55 kB / 1.382 GB, free: 13.29 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006695/0.4836, allocations: 465.5 kB / 1.382 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.4836, allocations: 30.56 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=2): time 1.262e-06/0.4836, allocations: 0 / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2): time 0.0004373/0.4841, allocations: 109.5 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.4841, allocations: 51.41 kB / 1.382 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.617e-05/0.4842, allocations: 97.12 kB / 1.382 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.671e-05/0.4842, allocations: 25.7 kB / 1.382 GB, free: 12.39 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.695e-05/0.4843, allocations: 88.12 kB / 1.382 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.4843, allocations: 7.844 kB / 1.382 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.74e-06/0.4843, allocations: 4 kB / 1.382 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.4845, allocations: 314.8 kB / 1.383 GB, free: 11.97 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.4846, allocations: 23.98 kB / 1.383 GB, free: 11.95 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.554e-05/0.4847, allocations: 23.98 kB / 1.383 GB, free: 11.93 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.426e-05/0.4848, allocations: 23.97 kB / 1.383 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.4848, allocations: 0 / 1.383 GB, free: 11.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002198/0.485, allocations: 81.67 kB / 1.383 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.485, allocations: 4 kB / 1.383 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.485, allocations: 3.984 kB / 1.383 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.4851, allocations: 0 / 1.383 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.369e-05/0.4852, allocations: 8 kB / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.4852, allocations: 4.031 kB / 1.383 GB, free: 11.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.391e-05/0.4852, allocations: 11.98 kB / 1.383 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.4852, allocations: 0 / 1.383 GB, free: 11.79 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 (2): * Single equations (assignments): 2 * 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 9.451e-05/0.4853, allocations: 118.6 kB / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.342e-05/0.4854, allocations: 0 / 1.383 GB, free: 11.66 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.4857, allocations: 89.11 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.4857, allocations: 0 / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.4857, allocations: 4.25 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.4857, allocations: 0 / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.4859, allocations: 169.5 kB / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.4859, allocations: 0 / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.952e-05/0.486, allocations: 16.02 kB / 1.383 GB, free: 11.34 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.486, allocations: 3.938 kB / 1.383 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.486, allocations: 4 kB / 1.383 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.486, allocations: 0 / 1.383 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.486, allocations: 0 / 1.383 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002797/0.4863, allocations: 179.4 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.594e-05/0.4863, allocations: 81.11 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.4864, allocations: 0 / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.06e-05/0.4865, allocations: 7.984 kB / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.4865, allocations: 4 kB / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.4865, allocations: 0 / 1.384 GB, free: 11.03 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.746e-05/0.4866, allocations: 95.23 kB / 1.384 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4866, allocations: 0 / 1.384 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002229/0.4868, allocations: 12 kB / 1.384 GB, free: 10.92 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 (2): * Single equations (assignments): 2 * 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.0002424/0.4871, allocations: 119.2 kB / 1.384 GB, free: 10.79 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.4873, allocations: 47.97 kB / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4873, allocations: 0 / 1.384 GB, free: 10.75 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 9.462e-05/0.4874, allocations: 27.98 kB / 1.384 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002195/0.4877, allocations: 3.953 kB / 1.384 GB, free: 10.71 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00034/0.488, allocations: 113.1 kB / 1.384 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.4884, allocations: 0.6848 MB / 1.385 GB, free: 9.867 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.176e-05/0.4884, allocations: 3.984 kB / 1.385 GB, free: 9.863 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.237e-05/0.4884, allocations: 7.438 kB / 1.385 GB, free: 9.855 MB / 0.8855 GB Notification: Performance of SimCode: time 5.81e-07/0.4885, allocations: 0 / 1.385 GB, free: 9.855 MB / 0.8855 GB Notification: Performance of Templates: time 0.002777/0.4912, allocations: 0.6097 MB / 1.385 GB, free: 9.25 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches