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.001265/0.001265, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 183.1 kB / 16.66 MB, free: 6.602 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9742/0.9742, allocations: 135.1 MB / 425.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 71.88 kB / 0.5852 GB, free: 3.789 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4577/0.4591, allocations: 80.91 MB / 0.6642 GB, free: 7.297 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.RegStep): time 0.001689/0.4608, allocations: 0.5711 MB / 0.6648 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000302/0.4611, allocations: 60.06 kB / 0.6648 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.018e-05/0.4612, allocations: 4 kB / 0.6648 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.998e-05/0.4612, allocations: 1.594 kB / 0.6648 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.106e-06/0.4612, allocations: 0 / 0.6648 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.4615, allocations: 16.92 kB / 0.6648 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.408e-05/0.4615, allocations: 1.219 kB / 0.6648 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.977e-05/0.4616, allocations: 5.047 kB / 0.6648 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.589e-05/0.4616, allocations: 0 / 0.6648 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.598e-05/0.4617, allocations: 1.375 kB / 0.6648 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.116e-05/0.4617, allocations: 0 / 0.6648 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.4618, allocations: 18.45 kB / 0.6649 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.102e-05/0.4618, allocations: 1.281 kB / 0.6649 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.752e-05/0.4618, allocations: 7.984 kB / 0.6649 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.733e-05/0.4619, allocations: 14.45 kB / 0.6649 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.462, allocations: 0 / 0.6649 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.397e-06/0.462, allocations: 3.984 kB / 0.6649 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.462, allocations: 1.312 kB / 0.6649 GB, free: 6.777 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.0002613/0.4622, allocations: 309.9 kB / 0.6652 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.4623, allocations: 9.469 kB / 0.6652 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.396e-05/0.4623, allocations: 36.25 kB / 0.6652 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.4625, allocations: 24.56 kB / 0.6652 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.045e-05/0.4626, allocations: 165.6 kB / 0.6654 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.933e-06/0.4626, allocations: 4.312 kB / 0.6654 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.091e-05/0.4626, allocations: 1.656 kB / 0.6654 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001296/0.4628, allocations: 34.06 kB / 0.6654 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4628, allocations: 7.875 kB / 0.6655 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.4628, allocations: 0 / 0.6655 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.4628, allocations: 1.062 kB / 0.6655 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.166e-05/0.4629, allocations: 13.55 kB / 0.6655 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.169e-05/0.463, allocations: 146.7 kB / 0.6656 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.513e-05/0.4631, allocations: 22.41 kB / 0.6656 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.771e-05/0.4631, allocations: 8.984 kB / 0.6656 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.4631, allocations: 0 / 0.6656 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.401e-05/0.4632, allocations: 39.92 kB / 0.6657 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 7.91e-07/0.4632, allocations: 0 / 0.6657 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0002113/0.4634, allocations: 48.53 kB / 0.6657 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.217e-05/0.4634, allocations: 51.41 kB / 0.6658 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.842e-05/0.4634, allocations: 94.8 kB / 0.6659 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.4634, allocations: 25.7 kB / 0.6659 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.201e-05/0.4635, allocations: 81.2 kB / 0.666 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.884e-05/0.4635, allocations: 8.078 kB / 0.666 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-05/0.4635, allocations: 16.52 kB / 0.666 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.367e-05/0.4636, allocations: 310.8 kB / 0.6663 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.548e-05/0.4636, allocations: 3.812 kB / 0.6663 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.63e-05/0.4637, allocations: 6.484 kB / 0.6663 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.636e-05/0.4637, allocations: 23.78 kB / 0.6663 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4638, allocations: 4.062 kB / 0.6663 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001047/0.4639, allocations: 38.94 kB / 0.6664 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.4639, allocations: 4.969 kB / 0.6664 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.4639, allocations: 5.25 kB / 0.6664 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.4639, allocations: 0 / 0.6664 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.895e-05/0.464, allocations: 6.641 kB / 0.6664 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.464, allocations: 0 / 0.6664 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.148e-05/0.464, allocations: 2.812 kB / 0.6664 GB, free: 5.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.464, allocations: 8.031 kB / 0.6664 GB, free: 5.105 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 4.376e-05/0.4641, allocations: 110.8 kB / 0.6665 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.817e-06/0.4641, allocations: 5.266 kB / 0.6665 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.789e-05/0.4641, allocations: 7.062 kB / 0.6665 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.4641, allocations: 0 / 0.6665 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.4642, allocations: 1.406 kB / 0.6665 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.4642, allocations: 3.984 kB / 0.6665 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.098e-05/0.4642, allocations: 146.9 kB / 0.6666 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.4642, allocations: 0 / 0.6666 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.071e-05/0.4643, allocations: 11.64 kB / 0.6667 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.4643, allocations: 7.875 kB / 0.6667 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.4643, allocations: 3.938 kB / 0.6667 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.4643, allocations: 1.219 kB / 0.6667 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4643, allocations: 0 / 0.6667 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001221/0.4644, allocations: 58.84 kB / 0.6667 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.88e-05/0.4645, allocations: 82.52 kB / 0.6668 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.4645, allocations: 11.92 kB / 0.6668 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.028e-05/0.4645, allocations: 2.406 kB / 0.6668 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.568e-05/0.4645, allocations: 0 / 0.6668 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.4645, allocations: 1.406 kB / 0.6668 GB, free: 4.582 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.419e-05/0.4646, allocations: 77.95 kB / 0.6669 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4646, allocations: 0 / 0.6669 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001699/0.4647, allocations: 1.188 kB / 0.6669 GB, free: 4.508 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.0003383/0.4651, allocations: 0.609 MB / 0.6675 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001429/0.4652, allocations: 11.3 kB / 0.6675 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.4652, allocations: 1.312 kB / 0.6675 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.463e-05/0.4653, allocations: 7.875 kB / 0.6675 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.4654, allocations: 9.328 kB / 0.6675 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003298/0.4658, allocations: 115.1 kB / 0.6676 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.4659, allocations: 0.6703 MB / 0.6683 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.062e-05/0.4659, allocations: 5.531 kB / 0.6683 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.04e-05/0.466, allocations: 8.844 kB / 0.6683 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.466, allocations: 0 / 0.6683 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01607/0.482, allocations: 0.9436 MB / 0.6692 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.345/7.827, allocations: 11.09 kB / 0.6692 GB, free: 2.445 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)