Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.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.979/1.979, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001007/0.001007, allocations: 173.3 kB / 487 MB, free: 5.375 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.319/1.319, allocations: 221.3 MB / 0.7819 GB, free: 1.379 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.0009979/0.0009979, allocations: 104.8 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.931e-06/5.941e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2517, allocations: 142.3 MB / 1.205 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6949/0.9467, allocations: 148.3 MB / 1.35 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.9469, allocations: 73.14 kB / 1.35 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01107/0.958, allocations: 3.688 MB / 1.354 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.9581, allocations: 4 kB / 1.354 GB, free: 15.64 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002255/0.9583, allocations: 339.2 kB / 1.354 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.9583, allocations: 8.906 kB / 1.354 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.925e-05/0.9584, allocations: 1.344 kB / 1.354 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.744e-05/0.9585, allocations: 159.9 kB / 1.354 GB, free: 15.09 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.067e-05/0.9585, allocations: 4.875 kB / 1.354 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-06/0.9585, allocations: 5.391 kB / 1.354 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.788e-05/0.9585, allocations: 1.562 kB / 1.354 GB, free: 15.08 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.875e-05/0.9586, allocations: 27.88 kB / 1.354 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.9586, allocations: 4 kB / 1.354 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.9586, allocations: 0.875 kB / 1.354 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.9586, allocations: 0 / 1.354 GB, free: 15.04 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.072e-05/0.9587, allocations: 124.5 kB / 1.354 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 2.998e-05/0.9588, allocations: 23.64 kB / 1.354 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.729e-05/0.9588, allocations: 6.375 kB / 1.354 GB, free: 14.85 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003703/0.9592, allocations: 426.4 kB / 1.355 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.9592, allocations: 31.92 kB / 1.355 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.9592, allocations: 0 / 1.355 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 0.0001382/0.9593, allocations: 34.8 kB / 1.355 GB, free: 14.3 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.688e-05/0.9594, allocations: 52.38 kB / 1.355 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.437e-05/0.9594, allocations: 85 kB / 1.355 GB, free: 14.15 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.675e-06/0.9594, allocations: 30.8 kB / 1.355 GB, free: 14.12 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 1.324e-05/0.9594, allocations: 80.14 kB / 1.355 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.178e-05/0.9594, allocations: 6.406 kB / 1.355 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-06/0.9595, allocations: 0 / 1.355 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 4.398e-05/0.9595, allocations: 315.2 kB / 1.355 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.931e-06/0.9595, allocations: 1 kB / 1.355 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.791e-06/0.9595, allocations: 5.375 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.475e-05/0.9596, allocations: 1.688 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.9596, allocations: 9.094 kB / 1.355 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.658e-05/0.9596, allocations: 35.72 kB / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.9596, allocations: 5.656 kB / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.9597, allocations: 0 / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.9597, allocations: 1.312 kB / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.892e-05/0.9597, allocations: 1.812 kB / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.9597, allocations: 1.016 kB / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.019e-05/0.9597, allocations: 1.844 kB / 1.356 GB, free: 13.67 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.9598, allocations: 0 / 1.356 GB, free: 13.67 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 (1): * Single equations (assignments): 1 * 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.077e-05/0.9598, allocations: 106.2 kB / 1.356 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.07e-05/0.9598, allocations: 5.391 kB / 1.356 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.9599, allocations: 40.89 kB / 1.356 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.9599, allocations: 0.7812 kB / 1.356 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.9599, allocations: 0 / 1.356 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.96, allocations: 0.8438 kB / 1.356 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.047e-05/0.96, allocations: 127.9 kB / 1.356 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.21e-07/0.96, allocations: 0 / 1.356 GB, free: 13.37 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.229e-05/0.96, allocations: 6.891 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.96, allocations: 1.031 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.972e-06/0.96, allocations: 3.906 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.96, allocations: 1.031 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.9601, allocations: 3.984 kB / 1.356 GB, free: 13.36 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.117e-05/0.9601, allocations: 54.69 kB / 1.356 GB, free: 13.29 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.709e-05/0.9602, allocations: 77.73 kB / 1.356 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.9602, allocations: 4.828 kB / 1.356 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-06/0.9602, allocations: 8.688 kB / 1.356 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.167e-05/0.9602, allocations: 1.469 kB / 1.356 GB, free: 13.19 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.9602, allocations: 7.188 kB / 1.356 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.31e-05/0.9602, allocations: 80.03 kB / 1.356 GB, free: 13.11 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001859/0.9604, allocations: 17.88 kB / 1.356 GB, free: 13.1 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 (1): * Single equations (assignments): 1 * 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.0001836/0.9606, allocations: 114 kB / 1.356 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 5.041e-05/0.9607, allocations: 3.406 kB / 1.356 GB, free: 13.01 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.9607, allocations: 4.062 kB / 1.356 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 6.763e-06/0.9607, allocations: 3.172 kB / 1.356 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001129/0.9608, allocations: 0.7812 kB / 1.356 GB, free: 13 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001278/0.9609, allocations: 40.95 kB / 1.356 GB, free: 12.95 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002886/0.9612, allocations: 0.6816 MB / 1.357 GB, free: 28.24 MB / 0.823 GB Notification: Performance of SimCode: time 2.41e-07/0.9612, allocations: 3.938 kB / 1.357 GB, free: 28.24 MB / 0.823 GB Notification: Performance of Templates: time 0.002262/0.9635, allocations: 450.4 kB / 1.357 GB, free: 28.19 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches