Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 1.93/1.93, allocations: 387.2 MB / 394.5 MB, free: 13.62 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.001151/0.001151, allocations: 185.3 kB / 487 MB, free: 5.316 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.288/1.288, allocations: 221.3 MB / 0.7819 GB, free: 1.324 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009909/0.0009909, allocations: 85.89 kB / 0.9213 GB, free: 2.574 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.173e-06/7.193e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2525, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7093/0.9618, allocations: 149.1 MB / 1.351 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.9622, allocations: 72.11 kB / 1.351 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01295/0.9751, allocations: 4.011 MB / 1.355 GB, free: 15.59 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 8.235e-06/0.9752, allocations: 0 / 1.355 GB, free: 15.59 MB / 0.8073 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.0004354/0.9756, allocations: 361.6 kB / 1.355 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.9757, allocations: 9.391 kB / 1.355 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.929e-05/0.9758, allocations: 9.438 kB / 1.355 GB, free: 15.22 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001101/0.9759, allocations: 166.7 kB / 1.355 GB, free: 15.03 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.9759, allocations: 5.156 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.308e-06/0.9759, allocations: 0.75 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.97e-05/0.976, allocations: 18.52 kB / 1.355 GB, free: 15.02 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.94e-05/0.9761, allocations: 35.3 kB / 1.355 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.9761, allocations: 0.6562 kB / 1.355 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.9761, allocations: 0 / 1.355 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.9761, allocations: 1.609 kB / 1.355 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003995/0.9765, allocations: 249.8 kB / 1.356 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 5.729e-05/0.9766, allocations: 23.61 kB / 1.356 GB, free: 14.72 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.149e-05/0.9766, allocations: 16.61 kB / 1.356 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000575/0.9772, allocations: 465.4 kB / 1.356 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.9773, allocations: 31.92 kB / 1.356 GB, free: 14.2 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=2): time 1.743e-06/0.9773, allocations: 4.547 kB / 1.356 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2): time 0.0001963/0.9775, allocations: 40.33 kB / 1.356 GB, free: 14.16 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.005e-05/0.9775, allocations: 52.94 kB / 1.356 GB, free: 14.1 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.937e-05/0.9776, allocations: 103.6 kB / 1.356 GB, free: 14 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 8.987e-06/0.9776, allocations: 30.77 kB / 1.356 GB, free: 13.96 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.211e-05/0.9776, allocations: 85.02 kB / 1.356 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.9776, allocations: 9.375 kB / 1.356 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-06/0.9776, allocations: 0 / 1.356 GB, free: 13.88 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.307e-05/0.9777, allocations: 317.3 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.764e-05/0.9777, allocations: 6.562 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.332e-05/0.9777, allocations: 6.375 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.171e-05/0.9778, allocations: 4.172 kB / 1.357 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.9778, allocations: 4.906 kB / 1.357 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.972e-05/0.9779, allocations: 45.64 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.9779, allocations: 4.469 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.9779, allocations: 1.734 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.017e-05/0.9779, allocations: 0 / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.978, allocations: 12.8 kB / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.978, allocations: 0 / 1.357 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.927e-05/0.9781, allocations: 17.75 kB / 1.357 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.791e-06/0.9781, allocations: 0.7812 kB / 1.357 GB, free: 13.51 MB / 0.8073 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 4.108e-05/0.9782, allocations: 102 kB / 1.357 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.946e-05/0.9782, allocations: 2.875 kB / 1.357 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001259/0.9783, allocations: 59.39 kB / 1.357 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.9783, allocations: 1.438 kB / 1.357 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.9784, allocations: 4.031 kB / 1.357 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.9784, allocations: 4.703 kB / 1.357 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.9785, allocations: 136.3 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.9785, allocations: 0 / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.053e-05/0.9786, allocations: 12.59 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.9786, allocations: 0.8438 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.9786, allocations: 1 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.32e-07/0.9786, allocations: 0 / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.9786, allocations: 8.688 kB / 1.357 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001155/0.9787, allocations: 133.8 kB / 1.357 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.9787, allocations: 86.47 kB / 1.357 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.9788, allocations: 1.547 kB / 1.357 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-05/0.9789, allocations: 12.75 kB / 1.357 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.9789, allocations: 6.531 kB / 1.357 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.958e-06/0.9789, allocations: 5.031 kB / 1.357 GB, free: 12.96 MB / 0.8073 GB Notification: Performance of sort global known variables: time 2.473e-05/0.9789, allocations: 80.48 kB / 1.357 GB, free: 12.88 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002308/0.9792, allocations: 13.75 kB / 1.357 GB, free: 12.88 MB / 0.8073 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.0001966/0.9794, allocations: 115 kB / 1.358 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.405e-05/0.9795, allocations: 16.56 kB / 1.358 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.9795, allocations: 0 / 1.358 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.226e-05/0.9795, allocations: 9.516 kB / 1.358 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001762/0.9797, allocations: 17.34 kB / 1.358 GB, free: 12.77 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002151/0.9799, allocations: 61.28 kB / 1.358 GB, free: 12.71 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002528/0.9802, allocations: 0.6933 MB / 1.358 GB, free: 28 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/0.9802, allocations: 0 / 1.358 GB, free: 28 MB / 0.823 GB Notification: Performance of Templates: time 0.002787/0.983, allocations: 0.6608 MB / 1.359 GB, free: 27.95 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches