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.305/2.305, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.001009/0.001009, allocations: 172.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.901/1.901, allocations: 221.3 MB / 0.7915 GB, free: 5.355 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.0008803/0.0008806, allocations: 91.52 kB / 0.9317 GB, free: 5.66 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.268e-05/3.277e-05, allocations: 7.984 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3433, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.043/1.386, allocations: 150.6 MB / 1.366 GB, free: 3.414 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/1.386, allocations: 67.28 kB / 1.366 GB, free: 3.379 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01252/1.399, allocations: 4.369 MB / 1.37 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.653e-06/1.399, allocations: 0 / 1.37 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.317e-06/1.399, allocations: 4 kB / 1.37 GB, free: 15.65 MB / 0.8386 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.0004064/1.399, allocations: 362.2 kB / 1.371 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/1.399, allocations: 8.031 kB / 1.371 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.725e-05/1.399, allocations: 4.625 kB / 1.371 GB, free: 15.24 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/1.4, allocations: 174.9 kB / 1.371 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/1.4, allocations: 3.984 kB / 1.371 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/1.4, allocations: 0 / 1.371 GB, free: 15.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001095/1.4, allocations: 37.52 kB / 1.371 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/1.4, allocations: 0 / 1.371 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/1.4, allocations: 6.812 kB / 1.371 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/1.4, allocations: 0 / 1.371 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.789e-05/1.4, allocations: 11.25 kB / 1.371 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004492/1.4, allocations: 270.2 kB / 1.371 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.294e-05/1.4, allocations: 30.08 kB / 1.371 GB, free: 14.64 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.757e-05/1.4, allocations: 11.86 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006313/1.401, allocations: 468.2 kB / 1.372 GB, free: 14.08 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/1.401, allocations: 30.56 kB / 1.372 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/1.401, allocations: 0 / 1.372 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2): time 0.0001979/1.401, allocations: 44.45 kB / 1.372 GB, free: 13.99 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/1.401, allocations: 58.03 kB / 1.372 GB, free: 13.93 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.666e-05/1.401, allocations: 107.9 kB / 1.372 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/1.401, allocations: 25.7 kB / 1.372 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.685e-05/1.402, allocations: 82.83 kB / 1.372 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/1.402, allocations: 3.906 kB / 1.372 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-06/1.402, allocations: 3.938 kB / 1.372 GB, free: 13.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001437/1.402, allocations: 317.7 kB / 1.372 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.605e-05/1.402, allocations: 4.031 kB / 1.372 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.608e-05/1.402, allocations: 7.312 kB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.96e-05/1.402, allocations: 4 kB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.402, allocations: 0 / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.531e-05/1.402, allocations: 52.22 kB / 1.372 GB, free: 13.32 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/1.402, allocations: 4 kB / 1.372 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/1.402, allocations: 0 / 1.372 GB, free: 13.31 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/1.402, allocations: 7.984 kB / 1.372 GB, free: 13.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/1.402, allocations: 24.02 kB / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/1.402, allocations: 0 / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.893e-05/1.402, allocations: 4 kB / 1.372 GB, free: 13.28 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/1.402, allocations: 7.953 kB / 1.372 GB, free: 13.27 MB / 0.8386 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 (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 6.583e-05/1.402, allocations: 105 kB / 1.372 GB, free: 13.16 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/1.402, allocations: 0 / 1.372 GB, free: 13.16 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001172/1.402, allocations: 51.47 kB / 1.372 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/1.402, allocations: 4.031 kB / 1.372 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/1.402, allocations: 0 / 1.372 GB, free: 13.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/1.402, allocations: 3.938 kB / 1.372 GB, free: 13.1 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/1.403, allocations: 168.2 kB / 1.373 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/1.403, allocations: 0 / 1.373 GB, free: 12.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.141e-05/1.403, allocations: 11.98 kB / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/1.403, allocations: 0 / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/1.403, allocations: 0 / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/1.403, allocations: 3.938 kB / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.403, allocations: 4 kB / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/1.403, allocations: 145.2 kB / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-05/1.403, allocations: 81.02 kB / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/1.403, allocations: 0 / 1.373 GB, free: 12.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.898e-05/1.403, allocations: 11.98 kB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/1.403, allocations: 3 kB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-06/1.403, allocations: 4.031 kB / 1.373 GB, free: 12.61 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.3e-05/1.403, allocations: 83.27 kB / 1.373 GB, free: 12.53 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.403, allocations: 4 kB / 1.373 GB, free: 12.52 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002002/1.403, allocations: 15 kB / 1.373 GB, free: 12.51 MB / 0.8386 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 (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.0001915/1.403, allocations: 111.7 kB / 1.373 GB, free: 12.39 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.44e-05/1.404, allocations: 14.75 kB / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/1.404, allocations: 0 / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.304e-05/1.404, allocations: 10.81 kB / 1.373 GB, free: 12.38 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/1.404, allocations: 20.45 kB / 1.373 GB, free: 12.36 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000216/1.404, allocations: 56.56 kB / 1.373 GB, free: 12.29 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/1.404, allocations: 0.6809 MB / 1.374 GB, free: 11.58 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.548e-05/1.404, allocations: 4 kB / 1.374 GB, free: 11.57 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.02e-05/1.404, allocations: 7.438 kB / 1.374 GB, free: 11.57 MB / 0.8386 GB Notification: Performance of SimCode: time 3.91e-07/1.404, allocations: 3.938 kB / 1.374 GB, free: 11.56 MB / 0.8386 GB Notification: Performance of Templates: time 0.002811/1.407, allocations: 0.6088 MB / 1.374 GB, free: 10.96 MB / 0.8386 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