Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7148/0.7148, allocations: 141.8 MB / 149.1 MB, free: 12.84 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009848/0.0009848, allocations: 190 kB / 181.9 MB, free: 9.562 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 221.3 MB / 436 MB, free: 1.984 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009517/0.0009517, allocations: 100.5 kB / 0.507 GB, free: 17.71 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00175/0.00175, allocations: 264 kB / 0.5884 GB, free: 3.574 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3241/0.3259, allocations: 89.66 MB / 0.676 GB, free: 136.3 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.4577, allocations: 82.77 MB / 0.7568 GB, free: 82.67 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.5646, allocations: 107.1 MB / 0.8614 GB, free: 7.422 MB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001757/0.5648, allocations: 85.75 kB / 0.8615 GB, free: 7.34 MB / 0.5419 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.001367/0.5662, allocations: 0.5414 MB / 0.862 GB, free: 6.754 MB / 0.5419 GB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.5663, allocations: 8 kB / 0.862 GB, free: 6.746 MB / 0.5419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001812/0.5665, allocations: 15.97 kB / 0.8621 GB, free: 6.73 MB / 0.5419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.5666, allocations: 167 kB / 0.8622 GB, free: 6.527 MB / 0.5419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-06/0.5666, allocations: 0 / 0.8622 GB, free: 6.527 MB / 0.5419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.648e-06/0.5666, allocations: 0 / 0.8622 GB, free: 6.527 MB / 0.5419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.529e-05/0.5667, allocations: 8 kB / 0.8622 GB, free: 6.52 MB / 0.5419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.498e-05/0.5667, allocations: 33.59 kB / 0.8623 GB, free: 6.48 MB / 0.5419 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.441e-06/0.5667, allocations: 4 kB / 0.8623 GB, free: 6.477 MB / 0.5419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.5667, allocations: 0 / 0.8623 GB, free: 6.477 MB / 0.5419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.5668, allocations: 7.938 kB / 0.8623 GB, free: 6.469 MB / 0.5419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001097/0.5669, allocations: 126.2 kB / 0.8624 GB, free: 6.309 MB / 0.5419 GB Notification: Performance of preOpt comSubExp (simulation): time 4.218e-05/0.5669, allocations: 18.52 kB / 0.8624 GB, free: 6.281 MB / 0.5419 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.5669, allocations: 8.953 kB / 0.8624 GB, free: 6.27 MB / 0.5419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.567, allocations: 0 / 0.8624 GB, free: 6.27 MB / 0.5419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.567, allocations: 38.55 kB / 0.8624 GB, free: 6.223 MB / 0.5419 GB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.567, allocations: 0 / 0.8624 GB, free: 6.223 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1): time 0.0001153/0.5671, allocations: 37.59 kB / 0.8625 GB, free: 6.18 MB / 0.5419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.5672, allocations: 51.41 kB / 0.8625 GB, free: 6.117 MB / 0.5419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.603e-05/0.5672, allocations: 85 kB / 0.8626 GB, free: 6.027 MB / 0.5419 GB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.5672, allocations: 25.7 kB / 0.8626 GB, free: 5.996 MB / 0.5419 GB Notification: Performance of collectInitialEqns (initialization): time 2.175e-05/0.5672, allocations: 80.14 kB / 0.8627 GB, free: 5.914 MB / 0.5419 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.5673, allocations: 4 kB / 0.8627 GB, free: 5.91 MB / 0.5419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.976e-06/0.5673, allocations: 0 / 0.8627 GB, free: 5.91 MB / 0.5419 GB Notification: Performance of setup shared object (initialization): time 9.72e-05/0.5674, allocations: 318.9 kB / 0.863 GB, free: 5.59 MB / 0.5419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.415e-06/0.5674, allocations: 0 / 0.863 GB, free: 5.59 MB / 0.5419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.845e-06/0.5674, allocations: 0 / 0.863 GB, free: 5.59 MB / 0.5419 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.498e-05/0.5674, allocations: 7.938 kB / 0.863 GB, free: 5.582 MB / 0.5419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.5674, allocations: 3.984 kB / 0.863 GB, free: 5.578 MB / 0.5419 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.436e-05/0.5675, allocations: 33.61 kB / 0.8631 GB, free: 5.539 MB / 0.5419 GB Notification: Performance of prepare postOptimizeDAE: time 9.408e-06/0.5675, allocations: 4 kB / 0.8631 GB, free: 5.535 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.5675, allocations: 0 / 0.8631 GB, free: 5.535 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.5675, allocations: 8.094 kB / 0.8631 GB, free: 5.527 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.074e-05/0.5676, allocations: 7.922 kB / 0.8631 GB, free: 5.52 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.966e-06/0.5676, allocations: 0 / 0.8631 GB, free: 5.52 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.739e-05/0.5677, allocations: 4 kB / 0.8631 GB, free: 5.516 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.5677, allocations: 0 / 0.8631 GB, free: 5.516 MB / 0.5419 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 5.954e-05/0.5678, allocations: 101 kB / 0.8632 GB, free: 5.41 MB / 0.5419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.834e-06/0.5678, allocations: 0 / 0.8632 GB, free: 5.41 MB / 0.5419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.34e-05/0.5678, allocations: 10.91 kB / 0.8632 GB, free: 5.398 MB / 0.5419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.5678, allocations: 4 kB / 0.8632 GB, free: 5.395 MB / 0.5419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.5678, allocations: 0 / 0.8632 GB, free: 5.395 MB / 0.5419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.5678, allocations: 0 / 0.8632 GB, free: 5.395 MB / 0.5419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.643e-05/0.5679, allocations: 126.2 kB / 0.8633 GB, free: 5.234 MB / 0.5419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.5679, allocations: 0 / 0.8633 GB, free: 5.234 MB / 0.5419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.57e-05/0.568, allocations: 4 kB / 0.8633 GB, free: 5.23 MB / 0.5419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.568, allocations: 3.938 kB / 0.8633 GB, free: 5.227 MB / 0.5419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.568, allocations: 0 / 0.8633 GB, free: 5.227 MB / 0.5419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.568, allocations: 7.922 kB / 0.8633 GB, free: 5.219 MB / 0.5419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.568, allocations: 3.906 kB / 0.8633 GB, free: 5.215 MB / 0.5419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.475e-05/0.5681, allocations: 61.14 kB / 0.8634 GB, free: 5.137 MB / 0.5419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001651/0.5682, allocations: 441.4 kB / 0.8638 GB, free: 4.684 MB / 0.5419 GB Notification: Performance of postOpt removeConstants (simulation): time 3.35e-05/0.5683, allocations: 77.11 kB / 0.8639 GB, free: 4.59 MB / 0.5419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.172e-05/0.5683, allocations: 0 / 0.8639 GB, free: 4.59 MB / 0.5419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.044e-05/0.5684, allocations: 8.047 kB / 0.8639 GB, free: 4.582 MB / 0.5419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.134e-06/0.5684, allocations: 0 / 0.8639 GB, free: 4.582 MB / 0.5419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.5684, allocations: 8 kB / 0.8639 GB, free: 4.574 MB / 0.5419 GB Notification: Performance of sort global known variables: time 2.504e-05/0.5684, allocations: 75.28 kB / 0.864 GB, free: 4.5 MB / 0.5419 GB Notification: Performance of remove unused functions: time 0.0007722/0.5692, allocations: 3.938 kB / 0.864 GB, free: 4.496 MB / 0.5419 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.0001127/0.5693, allocations: 95.25 kB / 0.8641 GB, free: 4.391 MB / 0.5419 GB Notification: Performance of simCode: created initialization part: time 5.572e-05/0.5694, allocations: 4 kB / 0.8641 GB, free: 4.387 MB / 0.5419 GB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.5694, allocations: 4.062 kB / 0.8641 GB, free: 4.383 MB / 0.5419 GB Notification: Performance of simCode: created simulation system equations: time 7.875e-06/0.5694, allocations: 4 kB / 0.8641 GB, free: 4.379 MB / 0.5419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.661e-05/0.5695, allocations: 3.906 kB / 0.8641 GB, free: 4.375 MB / 0.5419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001814/0.5697, allocations: 48.06 kB / 0.8641 GB, free: 4.305 MB / 0.5419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002879/0.57, allocations: 0.6841 MB / 0.8648 GB, free: 3.594 MB / 0.5419 GB Notification: Performance of SimCode: time 2.7e-07/0.57, allocations: 0 / 0.8648 GB, free: 3.594 MB / 0.5419 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegStep.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)