Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="IDEAS_dev_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.003565/0.003565, allocations: 179.4 kB / 7.457 MB, free: 2.172 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7165/0.7165, allocations: 133.5 MB / 141.4 MB, free: 15.69 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 221.3 MB / 395 MB, free: 10.23 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009546/0.0009547, allocations: 93.34 kB / 477.8 MB, free: 10.88 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4302/0.4312, allocations: 88.44 MB / 0.5529 GB, free: 88.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.5878, allocations: 82.31 MB / 0.6333 GB, free: 14.01 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4679/1.056, allocations: 109.8 MB / 0.7405 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001955/1.056, allocations: 77.31 kB / 0.7406 GB, free: 10.84 MB / 0.4948 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.001436/1.057, allocations: 0.5412 MB / 0.7411 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/1.057, allocations: 12.64 kB / 0.7411 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001922/1.058, allocations: 16.97 kB / 0.7411 GB, free: 26.48 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.105e-05/1.058, allocations: 164.5 kB / 0.7413 GB, free: 26.29 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/1.058, allocations: 4 kB / 0.7413 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/1.058, allocations: 0 / 0.7413 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.543e-05/1.058, allocations: 4.578 kB / 0.7413 GB, free: 26.28 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.738e-05/1.058, allocations: 28.38 kB / 0.7413 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/1.058, allocations: 0 / 0.7413 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/1.058, allocations: 7.766 kB / 0.7413 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/1.058, allocations: 4.547 kB / 0.7414 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001133/1.058, allocations: 123.5 kB / 0.7415 GB, free: 26.09 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.726e-05/1.058, allocations: 29.22 kB / 0.7415 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.691e-05/1.058, allocations: 10.83 kB / 0.7415 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/1.058, allocations: 0 / 0.7415 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/1.058, allocations: 31.27 kB / 0.7415 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1): time 7.41e-07/1.058, allocations: 0 / 0.7415 GB, free: 26.01 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1): time 0.0001272/1.058, allocations: 31.09 kB / 0.7416 GB, free: 25.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/1.058, allocations: 51.41 kB / 0.7416 GB, free: 25.91 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.446e-05/1.058, allocations: 85 kB / 0.7417 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/1.058, allocations: 38.39 kB / 0.7417 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.735e-05/1.058, allocations: 83.83 kB / 0.7418 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.307e-05/1.059, allocations: 0 / 0.7418 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/1.059, allocations: 0 / 0.7418 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001075/1.059, allocations: 315.5 kB / 0.7421 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.097e-06/1.059, allocations: 0 / 0.7421 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.126e-06/1.059, allocations: 8.594 kB / 0.7421 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.316e-05/1.059, allocations: 0 / 0.7421 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/1.059, allocations: 4.062 kB / 0.7421 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.457e-05/1.059, allocations: 31.58 kB / 0.7422 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.818e-06/1.059, allocations: 7.688 kB / 0.7422 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/1.059, allocations: 0.6562 kB / 0.7422 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.077e-06/1.059, allocations: 0 / 0.7422 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.137e-05/1.059, allocations: 5.375 kB / 0.7422 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/1.059, allocations: 0.6562 kB / 0.7422 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.612e-05/1.059, allocations: 2.531 kB / 0.7422 GB, free: 25.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/1.059, allocations: 0 / 0.7422 GB, free: 25.35 MB / 0.5105 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.196e-05/1.059, allocations: 113.4 kB / 0.7423 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.575e-06/1.059, allocations: 0 / 0.7423 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/1.059, allocations: 7.469 kB / 0.7423 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/1.059, allocations: 3.938 kB / 0.7423 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/1.059, allocations: 0.7969 kB / 0.7423 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/1.059, allocations: 0 / 0.7423 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.214e-05/1.059, allocations: 136.1 kB / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/1.059, allocations: 1.938 kB / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.37e-05/1.059, allocations: 1.828 kB / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-06/1.059, allocations: 7.969 kB / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/1.059, allocations: 0 / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/1.059, allocations: 0.7031 kB / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.059, allocations: 0 / 0.7424 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.005e-05/1.059, allocations: 51.73 kB / 0.7425 GB, free: 25 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001861/1.06, allocations: 447.6 kB / 0.7429 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.771e-05/1.06, allocations: 78 kB / 0.743 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/1.06, allocations: 4.766 kB / 0.743 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.798e-05/1.06, allocations: 0.6562 kB / 0.743 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.067e-06/1.06, allocations: 0.5625 kB / 0.743 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.105e-06/1.06, allocations: 0 / 0.743 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.007e-05/1.06, allocations: 81.94 kB / 0.7431 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0007321/1.06, allocations: 4.609 kB / 0.7431 GB, free: 24.38 MB / 0.5105 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.0001316/1.061, allocations: 99 kB / 0.7432 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 6.401e-05/1.061, allocations: 4.484 kB / 0.7432 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.061, allocations: 0 / 0.7432 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 9.007e-06/1.061, allocations: 8.25 kB / 0.7432 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.461e-05/1.061, allocations: 1.328 kB / 0.7432 GB, free: 24.29 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001991/1.061, allocations: 46.66 kB / 0.7432 GB, free: 24.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/1.061, allocations: 0.691 MB / 0.7439 GB, free: 23.51 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/1.061, allocations: 0 / 0.7439 GB, free: 23.51 MB / 0.5105 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)