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/ModelicaServices 4.0.0+maint.om/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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005439/0.005439, allocations: 97.62 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 201.9 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.023/1.023, allocations: 135.6 MB / 426.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 75.88 kB / 0.5858 GB, free: 3.152 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4649/0.4671, allocations: 81.03 MB / 0.6649 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.RegStep): time 0.001672/0.4688, allocations: 0.5599 MB / 0.6655 GB, free: 6.605 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002686/0.4691, allocations: 55.61 kB / 0.6655 GB, free: 6.562 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.824e-05/0.4692, allocations: 5.406 kB / 0.6655 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.266e-05/0.4692, allocations: 0 / 0.6655 GB, free: 6.559 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.981e-06/0.4692, allocations: 4 kB / 0.6655 GB, free: 6.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.4694, allocations: 16.3 kB / 0.6656 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.171e-05/0.4695, allocations: 1.469 kB / 0.6656 GB, free: 6.543 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.073e-05/0.4695, allocations: 5.422 kB / 0.6656 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.488e-05/0.4696, allocations: 1.219 kB / 0.6656 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.314e-05/0.4696, allocations: 1.125 kB / 0.6656 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.247e-06/0.4696, allocations: 0 / 0.6656 GB, free: 6.539 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001064/0.4697, allocations: 17.83 kB / 0.6656 GB, free: 6.531 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.035e-05/0.4697, allocations: 5.203 kB / 0.6656 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.591e-05/0.4698, allocations: 0 / 0.6656 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.691e-05/0.4698, allocations: 22.41 kB / 0.6656 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.4699, allocations: 0 / 0.6656 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.663e-06/0.4699, allocations: 0 / 0.6656 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.4699, allocations: 1.312 kB / 0.6656 GB, free: 6.512 MB / 0.4981 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.0002215/0.4701, allocations: 309.9 kB / 0.6659 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.4702, allocations: 9.438 kB / 0.6659 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.276e-05/0.4702, allocations: 35.94 kB / 0.6659 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002433/0.4704, allocations: 22.03 kB / 0.666 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.815e-05/0.4705, allocations: 168.4 kB / 0.6661 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.4705, allocations: 4.312 kB / 0.6661 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.4705, allocations: 1.969 kB / 0.6661 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001389/0.4707, allocations: 33.72 kB / 0.6662 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.4707, allocations: 3.938 kB / 0.6662 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-06/0.4707, allocations: 1.219 kB / 0.6662 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.4707, allocations: 0 / 0.6662 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.801e-05/0.4708, allocations: 9.578 kB / 0.6662 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001105/0.4709, allocations: 147.1 kB / 0.6663 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.88e-05/0.471, allocations: 31.12 kB / 0.6663 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.717e-05/0.4711, allocations: 7.203 kB / 0.6664 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.716e-05/0.4711, allocations: 1.438 kB / 0.6664 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.437e-05/0.4711, allocations: 34.55 kB / 0.6664 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.4711, allocations: 4 kB / 0.6664 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0002266/0.4713, allocations: 46.12 kB / 0.6664 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.211e-05/0.4714, allocations: 51.41 kB / 0.6665 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.52e-05/0.4714, allocations: 89.86 kB / 0.6666 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.365e-06/0.4714, allocations: 29.7 kB / 0.6666 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.232e-05/0.4714, allocations: 84.56 kB / 0.6667 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.4714, allocations: 3.984 kB / 0.6667 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.4715, allocations: 15.25 kB / 0.6667 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.567e-05/0.4715, allocations: 312.4 kB / 0.667 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.583e-05/0.4716, allocations: 11.03 kB / 0.667 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.912e-05/0.4716, allocations: 6.641 kB / 0.667 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001027/0.4717, allocations: 14.94 kB / 0.667 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.4717, allocations: 0.7188 kB / 0.667 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001153/0.4719, allocations: 54.86 kB / 0.6671 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.4719, allocations: 4.906 kB / 0.6671 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.4719, allocations: 5.094 kB / 0.6671 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.4719, allocations: 0 / 0.6671 GB, free: 4.848 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.975e-05/0.472, allocations: 6.734 kB / 0.6671 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.191e-06/0.472, allocations: 1.219 kB / 0.6671 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.203e-05/0.472, allocations: 1.469 kB / 0.6671 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.4721, allocations: 3.938 kB / 0.6671 GB, free: 4.84 MB / 0.4981 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.482e-05/0.4721, allocations: 115.4 kB / 0.6672 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.456e-06/0.4721, allocations: 1.156 kB / 0.6672 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.276e-05/0.4722, allocations: 7.062 kB / 0.6672 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.4722, allocations: 0 / 0.6672 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4722, allocations: 5.422 kB / 0.6672 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.4722, allocations: 0 / 0.6672 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.003e-05/0.4722, allocations: 146.9 kB / 0.6674 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.4723, allocations: 0 / 0.6674 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.295e-05/0.4723, allocations: 6.609 kB / 0.6674 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.4723, allocations: 5.5 kB / 0.6674 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.4723, allocations: 3.938 kB / 0.6674 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.4723, allocations: 0 / 0.6674 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4723, allocations: 1.344 kB / 0.6674 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001282/0.4725, allocations: 58.38 kB / 0.6674 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.869e-05/0.4725, allocations: 82.19 kB / 0.6675 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.4725, allocations: 7.922 kB / 0.6675 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.032e-05/0.4726, allocations: 6.188 kB / 0.6675 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.4726, allocations: 7.938 kB / 0.6675 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-06/0.4726, allocations: 1.125 kB / 0.6675 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.384e-05/0.4726, allocations: 75.28 kB / 0.6676 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4726, allocations: 1.625 kB / 0.6676 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001776/0.4728, allocations: 0 / 0.6676 GB, free: 4.242 MB / 0.4981 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003097/0.4731, allocations: 0.6045 MB / 0.6682 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001433/0.4733, allocations: 10.83 kB / 0.6682 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.4733, allocations: 5.188 kB / 0.6682 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.336e-05/0.4733, allocations: 12.02 kB / 0.6682 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.4735, allocations: 5.25 kB / 0.6682 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003027/0.4738, allocations: 120.1 kB / 0.6683 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.835e-05/0.4739, allocations: 0.6701 MB / 0.669 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.055e-05/0.4739, allocations: 1.438 kB / 0.669 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.529e-05/0.4739, allocations: 7.438 kB / 0.669 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.4739, allocations: 4 kB / 0.669 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0221/0.496, allocations: 0.9397 MB / 0.6699 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.816/8.312, allocations: 13.98 kB / 0.6699 GB, free: 2.18 MB / 0.4981 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_RegStep.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)