Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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.Functions.Examples.RegNonZeroPowerDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check") translateModel(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x|y|der.x.|der.y.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check") [: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.192/1.192, allocations: 249.4 MB / 256.7 MB, free: 7.016 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.001065/0.001065, allocations: 187.6 kB / 316 MB, free: 3.551 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.051/1.051, allocations: 205.2 MB / 0.5667 GB, free: 15.6 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.0007769/0.0007771, allocations: 91.28 kB / 0.671 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.724e-06/7.734e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1604, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4235/0.5839, allocations: 132.1 MB / 1.014 GB, free: 6.789 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001914/0.5842, allocations: 74.58 kB / 1.014 GB, free: 6.746 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01366/0.5978, allocations: 4.69 MB / 1.018 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.5979, allocations: 4 kB / 1.018 GB, free: 2.91 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002945/0.5982, allocations: 360.3 kB / 1.019 GB, free: 2.52 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.5982, allocations: 8.031 kB / 1.019 GB, free: 2.512 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.394e-05/0.5983, allocations: 8 kB / 1.019 GB, free: 2.504 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001084/0.5984, allocations: 170.9 kB / 1.019 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.5984, allocations: 4 kB / 1.019 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.5984, allocations: 4 kB / 1.019 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.655e-05/0.5985, allocations: 23.8 kB / 1.019 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.053e-05/0.5986, allocations: 41.56 kB / 1.019 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.5986, allocations: 0 / 1.019 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.5986, allocations: 4 kB / 1.019 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.5986, allocations: 3.906 kB / 1.019 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.5988, allocations: 142.7 kB / 1.019 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 5.759e-05/0.5988, allocations: 31.59 kB / 1.019 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.613e-05/0.5989, allocations: 26.36 kB / 1.019 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005955/0.5995, allocations: 461.5 kB / 1.019 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.5995, allocations: 30.56 kB / 1.019 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=7): time 2.224e-06/0.5995, allocations: 4 kB / 1.019 GB, free: 1.41 MB / 0.6355 GB Notification: Performance of matching and sorting (n=11): time 0.000922/0.6005, allocations: 0.5204 MB / 1.02 GB, free: 0.8281 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.462e-05/0.6005, allocations: 55.5 kB / 1.02 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.151e-05/0.6006, allocations: 92.12 kB / 1.02 GB, free: 0.668 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.6006, allocations: 29.7 kB / 1.02 GB, free: 0.6328 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.869e-05/0.6006, allocations: 84.14 kB / 1.02 GB, free: 0.5469 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.6006, allocations: 37.89 kB / 1.02 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.6007, allocations: 0 / 1.02 GB, free: 0.5156 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.6008, allocations: 318.7 kB / 1.021 GB, free: 200 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.115e-05/0.6008, allocations: 19.06 kB / 1.021 GB, free: 188 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.776e-05/0.6008, allocations: 20.88 kB / 1.021 GB, free: 176 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.136e-05/0.6009, allocations: 19.69 kB / 1.021 GB, free: 160 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6009, allocations: 3.984 kB / 1.021 GB, free: 156 kB / 0.6355 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001624/0.6011, allocations: 86.5 kB / 1.021 GB, free: 76 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.044e-05/0.6011, allocations: 6.188 kB / 1.021 GB, free: 72 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.6011, allocations: 4 kB / 1.021 GB, free: 68 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.6011, allocations: 7.906 kB / 1.021 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.6012, allocations: 19.98 kB / 1.021 GB, free: 40 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.6013, allocations: 0.9375 kB / 1.021 GB, free: 40 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.192e-05/0.6013, allocations: 0 / 1.021 GB, free: 40 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.737e-06/0.6013, allocations: 7.688 kB / 1.021 GB, free: 36 kB / 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 (13): * Single equations (assignments): 13 * 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 7.142e-05/0.6014, allocations: 105.3 kB / 1.021 GB, free: 15.93 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.6014, allocations: 8.094 kB / 1.021 GB, free: 15.92 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.6016, allocations: 110.4 kB / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.6016, allocations: 0 / 1.021 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.6016, allocations: 3.938 kB / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.6016, allocations: 0 / 1.021 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003368/0.602, allocations: 320.3 kB / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.602, allocations: 0 / 1.021 GB, free: 15.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001178/0.6021, allocations: 19.98 kB / 1.021 GB, free: 15.46 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.868e-06/0.6021, allocations: 4 kB / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.6021, allocations: 0 / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.6021, allocations: 0 / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.6021, allocations: 4 kB / 1.021 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002574/0.6024, allocations: 207.8 kB / 1.022 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-05/0.6025, allocations: 89 kB / 1.022 GB, free: 15.15 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.713e-05/0.6025, allocations: 4 kB / 1.022 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.724e-05/0.6026, allocations: 7.984 kB / 1.022 GB, free: 15.14 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.625e-05/0.6026, allocations: 11.44 kB / 1.022 GB, free: 15.13 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.6026, allocations: 3.906 kB / 1.022 GB, free: 15.12 MB / 0.6511 GB Notification: Performance of sort global known variables: time 2.852e-05/0.6027, allocations: 83.34 kB / 1.022 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002564/0.6029, allocations: 51.92 kB / 1.022 GB, free: 14.99 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0002335/0.6032, allocations: 154.4 kB / 1.022 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.000119/0.6033, allocations: 62.52 kB / 1.022 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.6033, allocations: 4 kB / 1.022 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.446e-05/0.6033, allocations: 29 kB / 1.022 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.6035, allocations: 2.031 kB / 1.022 GB, free: 14.76 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.6037, allocations: 125.7 kB / 1.022 GB, free: 14.62 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.604, allocations: 0.7032 MB / 1.023 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of SimCode: time 2.3e-07/0.604, allocations: 0 / 1.023 GB, free: 13.9 MB / 0.6511 GB Notification: Performance of Templates: time 0.003191/0.6072, allocations: 1.463 MB / 1.024 GB, free: 12.47 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches