Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) [: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.264/1.264, allocations: 249.4 MB / 256.7 MB, free: 7.664 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001042/0.001042, allocations: 177.3 kB / 316 MB, free: 7.957 MB / 254.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.173/1.173, allocations: 205.2 MB / 0.5667 GB, free: 3.391 MB / 414.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00084/0.0008399, allocations: 83.39 kB / 0.671 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.3615/0.3624, allocations: 112.5 MB / 0.7808 GB, free: 106.7 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.5191, allocations: 106.3 MB / 0.8847 GB, free: 312 kB / 0.545 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4623/0.9814, allocations: 131.1 MB / 1.013 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.9817, allocations: 73.95 kB / 1.013 GB, free: 13.58 MB / 0.6387 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.001465/0.9831, allocations: 0.5388 MB / 1.013 GB, free: 13.03 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.9832, allocations: 8 kB / 1.013 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.9834, allocations: 27.8 kB / 1.013 GB, free: 13 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.308e-05/0.9835, allocations: 166.4 kB / 1.014 GB, free: 12.8 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-06/0.9835, allocations: 0 / 1.014 GB, free: 12.8 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.169e-05/0.9835, allocations: 3.984 kB / 1.014 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.606e-05/0.9836, allocations: 4 kB / 1.014 GB, free: 12.79 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.303e-05/0.9836, allocations: 29.69 kB / 1.014 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.9836, allocations: 0 / 1.014 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.9837, allocations: 0 / 1.014 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.9837, allocations: 4 kB / 1.014 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.9838, allocations: 126.2 kB / 1.014 GB, free: 12.59 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 4.091e-05/0.9838, allocations: 26.5 kB / 1.014 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.844e-05/0.9839, allocations: 8.953 kB / 1.014 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.9839, allocations: 0 / 1.014 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.9839, allocations: 34 kB / 1.014 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=1): time 7.01e-07/0.9839, allocations: 0 / 1.014 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1): time 0.0001198/0.9841, allocations: 29.7 kB / 1.014 GB, free: 12.47 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.9841, allocations: 51.41 kB / 1.014 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.336e-05/0.9841, allocations: 89.03 kB / 1.014 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.9842, allocations: 25.7 kB / 1.014 GB, free: 12.28 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 2.591e-05/0.9842, allocations: 80.14 kB / 1.014 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 2.855e-05/0.9842, allocations: 10.53 kB / 1.014 GB, free: 12.19 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-06/0.9842, allocations: 0 / 1.014 GB, free: 12.19 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.9843, allocations: 314.8 kB / 1.014 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-06/0.9843, allocations: 0 / 1.014 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-06/0.9844, allocations: 0 / 1.014 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.904e-05/0.9844, allocations: 14.69 kB / 1.014 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.9844, allocations: 0 / 1.014 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.18e-05/0.9844, allocations: 29.7 kB / 1.014 GB, free: 11.83 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.9845, allocations: 6.5 kB / 1.014 GB, free: 11.82 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.9845, allocations: 0.8125 kB / 1.014 GB, free: 11.82 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.9845, allocations: 7.984 kB / 1.014 GB, free: 11.82 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.961e-05/0.9846, allocations: 0 / 1.014 GB, free: 11.82 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.698e-06/0.9846, allocations: 0 / 1.014 GB, free: 11.82 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.939e-05/0.9846, allocations: 8.562 kB / 1.014 GB, free: 11.81 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.9847, allocations: 32 / 1.014 GB, free: 11.81 MB / 0.6387 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 6.494e-05/0.9847, allocations: 105 kB / 1.014 GB, free: 11.7 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.485e-06/0.9847, allocations: 3.984 kB / 1.014 GB, free: 11.7 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.078e-05/0.9848, allocations: 10.95 kB / 1.014 GB, free: 11.69 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.9848, allocations: 2.5 kB / 1.014 GB, free: 11.69 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.9848, allocations: 0 / 1.014 GB, free: 11.69 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.9848, allocations: 3.938 kB / 1.014 GB, free: 11.68 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.326e-05/0.9849, allocations: 130.1 kB / 1.015 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.9849, allocations: 0 / 1.015 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.985, allocations: 11.98 kB / 1.015 GB, free: 11.51 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.985, allocations: 3.938 kB / 1.015 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.985, allocations: 3.188 kB / 1.015 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.72e-07/0.985, allocations: 0 / 1.015 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.985, allocations: 3.938 kB / 1.015 GB, free: 11.5 MB / 0.6387 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.037e-05/0.9851, allocations: 61.03 kB / 1.015 GB, free: 11.42 MB / 0.6387 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000152/0.9852, allocations: 436.9 kB / 1.015 GB, free: 10.98 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 2.969e-05/0.9853, allocations: 81.09 kB / 1.015 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.9853, allocations: 3.906 kB / 1.015 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.607e-05/0.9853, allocations: 0 / 1.015 GB, free: 10.88 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.135e-05/0.9854, allocations: 7.938 kB / 1.015 GB, free: 10.87 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.9854, allocations: 0 / 1.015 GB, free: 10.87 MB / 0.6387 GB Notification: Performance of sort global known variables: time 6.326e-05/0.9854, allocations: 79.31 kB / 1.015 GB, free: 10.79 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0007409/0.9862, allocations: 0 / 1.015 GB, free: 10.79 MB / 0.6387 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 9.705e-05/0.9863, allocations: 99.19 kB / 1.015 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 4.579e-05/0.9863, allocations: 7.984 kB / 1.015 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.9863, allocations: 0 / 1.015 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 7.404e-06/0.9864, allocations: 4 kB / 1.015 GB, free: 10.67 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.336e-05/0.9864, allocations: 0 / 1.015 GB, free: 10.67 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000181/0.9866, allocations: 54.61 kB / 1.015 GB, free: 10.6 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.9869, allocations: 0.6802 MB / 1.016 GB, free: 9.891 MB / 0.6387 GB Notification: Performance of SimCode: time 2.3e-07/0.9869, allocations: 0 / 1.016 GB, free: 9.891 MB / 0.6387 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)