Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower") translateModel(Buildings.Utilities.Math.Examples.RegNonZeroPower,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|regNonZeroPower.y",fileNamePrefix="Buildings_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.212/1.212, allocations: 249.4 MB / 256.7 MB, free: 7.121 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009302/0.0009302, allocations: 185.2 kB / 316 MB, free: 3.559 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.066/1.066, allocations: 205.2 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008053/0.0008053, allocations: 93.62 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.434e-06/7.464e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1626, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.442/0.6047, allocations: 132.5 MB / 1.014 GB, free: 6.195 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.6049, allocations: 73.95 kB / 1.014 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01169/0.6166, allocations: 3.968 MB / 1.018 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.6167, allocations: 0 / 1.018 GB, free: 2.887 MB / 0.6355 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.0003807/0.6171, allocations: 373.4 kB / 1.018 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.6171, allocations: 11.97 kB / 1.018 GB, free: 2.469 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.313e-05/0.6172, allocations: 4 kB / 1.018 GB, free: 2.465 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.6173, allocations: 167 kB / 1.018 GB, free: 2.262 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.6173, allocations: 4 kB / 1.018 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.6173, allocations: 0 / 1.018 GB, free: 2.258 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.202e-05/0.6174, allocations: 7.312 kB / 1.018 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.903e-05/0.6175, allocations: 44.44 kB / 1.019 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.6175, allocations: 4 kB / 1.019 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.109e-05/0.6175, allocations: 0 / 1.019 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.6175, allocations: 3.938 kB / 1.019 GB, free: 2.199 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003934/0.6179, allocations: 251.7 kB / 1.019 GB, free: 1.926 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.97e-05/0.618, allocations: 26.2 kB / 1.019 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.881e-05/0.618, allocations: 12.36 kB / 1.019 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005839/0.6186, allocations: 461.5 kB / 1.019 GB, free: 1.34 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.6186, allocations: 34.56 kB / 1.019 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.6186, allocations: 0 / 1.019 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001704/0.6188, allocations: 44.92 kB / 1.019 GB, free: 1.25 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.6189, allocations: 55.41 kB / 1.019 GB, free: 1.184 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.731e-05/0.6189, allocations: 96.31 kB / 1.019 GB, free: 1.086 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.6189, allocations: 29.69 kB / 1.019 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.974e-05/0.619, allocations: 83.27 kB / 1.02 GB, free: 0.9688 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.619, allocations: 7.906 kB / 1.02 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.916e-06/0.619, allocations: 0 / 1.02 GB, free: 0.9609 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.56e-05/0.6191, allocations: 314.9 kB / 1.02 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.588e-05/0.6191, allocations: 7.875 kB / 1.02 GB, free: 0.6406 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.241e-05/0.6192, allocations: 4 kB / 1.02 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.747e-05/0.6192, allocations: 3.625 kB / 1.02 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.6192, allocations: 0 / 1.02 GB, free: 0.6367 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.856e-05/0.6193, allocations: 48.78 kB / 1.02 GB, free: 0.5859 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/0.6193, allocations: 6.656 kB / 1.02 GB, free: 0.582 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.6193, allocations: 4 kB / 1.02 GB, free: 0.5781 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.6193, allocations: 4.094 kB / 1.02 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.337e-05/0.6194, allocations: 15.92 kB / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.6195, allocations: 0 / 1.02 GB, free: 0.5586 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.099e-05/0.6195, allocations: 8 kB / 1.02 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.6195, allocations: 0 / 1.02 GB, free: 0.5508 MB / 0.6355 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 5.666e-05/0.6196, allocations: 109 kB / 1.02 GB, free: 444 kB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.935e-05/0.6197, allocations: 7.906 kB / 1.02 GB, free: 436 kB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.6198, allocations: 56.81 kB / 1.02 GB, free: 380 kB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.6198, allocations: 4 kB / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.6198, allocations: 0 / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.6198, allocations: 0 / 1.02 GB, free: 376 kB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001201/0.6199, allocations: 141.7 kB / 1.02 GB, free: 200 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.6199, allocations: 0 / 1.02 GB, free: 200 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.107e-05/0.62, allocations: 16.02 kB / 1.02 GB, free: 184 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.62, allocations: 3.938 kB / 1.02 GB, free: 180 kB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.62, allocations: 4 kB / 1.02 GB, free: 176 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.6201, allocations: 3.938 kB / 1.02 GB, free: 172 kB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6201, allocations: 0 / 1.02 GB, free: 172 kB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001368/0.6202, allocations: 145.6 kB / 1.02 GB, free: 16 kB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.125e-05/0.6202, allocations: 81.05 kB / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.6203, allocations: 0 / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.6204, allocations: 11.98 kB / 1.021 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.6204, allocations: 3.906 kB / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-06/0.6204, allocations: 0 / 1.021 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.784e-05/0.6205, allocations: 86.53 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002122/0.6207, allocations: 20.02 kB / 1.021 GB, free: 15.8 MB / 0.6511 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.0001649/0.6208, allocations: 111.2 kB / 1.021 GB, free: 15.68 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 8.356e-05/0.6209, allocations: 15.25 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.6209, allocations: 0 / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 2.104e-05/0.621, allocations: 7.375 kB / 1.021 GB, free: 15.67 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.6211, allocations: 8.562 kB / 1.021 GB, free: 15.66 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002073/0.6214, allocations: 59.41 kB / 1.021 GB, free: 15.58 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002999/0.6217, allocations: 0.6959 MB / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of SimCode: time 2.31e-07/0.6217, allocations: 0 / 1.022 GB, free: 14.86 MB / 0.6511 GB Notification: Performance of Templates: time 0.002366/0.624, allocations: 0.6566 MB / 1.022 GB, free: 14.21 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches