Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="IDEAS_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.004743/0.004743, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.001263/0.001264, allocations: 196.9 kB / 16.68 MB, free: 5.93 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8156/0.8156, allocations: 132.2 MB / 422.7 MB, free: 6.492 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 69.36 kB / 0.5809 GB, free: 24.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1544, allocations: 80.22 MB / 0.6592 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.RegStep): time 0.001631/0.1561, allocations: 0.5745 MB / 0.6598 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002563/0.1563, allocations: 47.8 kB / 0.6598 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.1564, allocations: 0 / 0.6598 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.349e-05/0.1564, allocations: 4 kB / 0.6599 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.1564, allocations: 0 / 0.6599 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.1566, allocations: 19.91 kB / 0.6599 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 3.652e-05/0.1567, allocations: 0 / 0.6599 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.113e-05/0.1567, allocations: 4 kB / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.575e-05/0.1568, allocations: 3.938 kB / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.184e-05/0.1568, allocations: 3.984 kB / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.456e-06/0.1568, allocations: 0 / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.1569, allocations: 19.98 kB / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.676e-06/0.1569, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.859e-05/0.1569, allocations: 4 kB / 0.6599 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.539e-05/0.157, allocations: 19.97 kB / 0.6599 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.157, allocations: 0 / 0.6599 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1571, allocations: 0 / 0.6599 GB, free: 9.992 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.458e-06/0.1571, allocations: 0 / 0.6599 GB, free: 9.992 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.0003293/0.1574, allocations: 315.8 kB / 0.6602 GB, free: 9.633 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.1574, allocations: 8.031 kB / 0.6602 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.903e-05/0.1575, allocations: 34.75 kB / 0.6603 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002487/0.1577, allocations: 24.91 kB / 0.6603 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001238/0.1579, allocations: 162.9 kB / 0.6604 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.351e-05/0.1579, allocations: 4.359 kB / 0.6604 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.1579, allocations: 4.312 kB / 0.6605 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001464/0.1581, allocations: 34.25 kB / 0.6605 GB, free: 9.316 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.349e-05/0.1581, allocations: 7.938 kB / 0.6605 GB, free: 9.309 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.156e-06/0.1581, allocations: 3.938 kB / 0.6605 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1581, allocations: 0 / 0.6605 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.443e-05/0.1582, allocations: 15.98 kB / 0.6605 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001605/0.1584, allocations: 145.7 kB / 0.6607 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.239e-05/0.1585, allocations: 26.88 kB / 0.6607 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.694e-05/0.1585, allocations: 8.922 kB / 0.6607 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.1585, allocations: 0 / 0.6607 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.311e-05/0.1586, allocations: 30.56 kB / 0.6607 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.083e-06/0.1586, allocations: 4 kB / 0.6607 GB, free: 9.008 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0002459/0.1588, allocations: 53.55 kB / 0.6608 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.1589, allocations: 51.41 kB / 0.6608 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.536e-05/0.1589, allocations: 93.86 kB / 0.6609 GB, free: 8.785 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.159, allocations: 25.7 kB / 0.6609 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.244e-05/0.159, allocations: 80.14 kB / 0.661 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.159, allocations: 3.953 kB / 0.661 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.906e-05/0.1591, allocations: 25.83 kB / 0.661 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1592, allocations: 310.8 kB / 0.6613 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.697e-05/0.1593, allocations: 4 kB / 0.6613 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.166e-05/0.1593, allocations: 7.984 kB / 0.6613 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.1594, allocations: 20.78 kB / 0.6614 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1594, allocations: 64 / 0.6614 GB, free: 8.289 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001222/0.1596, allocations: 45.69 kB / 0.6614 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.1596, allocations: 4 kB / 0.6614 GB, free: 8.234 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1596, allocations: 3.938 kB / 0.6614 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.1596, allocations: 0 / 0.6614 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.841e-05/0.1597, allocations: 4 kB / 0.6614 GB, free: 8.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1597, allocations: 3.984 kB / 0.6614 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.399e-05/0.1597, allocations: 4 kB / 0.6614 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.1597, allocations: 0 / 0.6614 GB, free: 8.219 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 7.964e-05/0.1598, allocations: 110.8 kB / 0.6615 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.214e-06/0.1598, allocations: 0 / 0.6615 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.905e-05/0.1599, allocations: 7.062 kB / 0.6615 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.1599, allocations: 0 / 0.6615 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.1599, allocations: 4 kB / 0.6615 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.1599, allocations: 0 / 0.6615 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001112/0.16, allocations: 149.7 kB / 0.6617 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.16, allocations: 0 / 0.6617 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-05/0.1601, allocations: 4 kB / 0.6617 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1601, allocations: 4 kB / 0.6617 GB, free: 7.883 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.1601, allocations: 15.8 kB / 0.6617 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1601, allocations: 3.938 kB / 0.6617 GB, free: 7.863 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.501e-06/0.1601, allocations: 3.984 kB / 0.6617 GB, free: 7.859 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001447/0.1603, allocations: 61.12 kB / 0.6618 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.758e-05/0.1603, allocations: 81.11 kB / 0.6619 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.35e-05/0.1604, allocations: 7.969 kB / 0.6619 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.515e-05/0.1604, allocations: 7.984 kB / 0.6619 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.556e-05/0.1604, allocations: 4 kB / 0.6619 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.1604, allocations: 0 / 0.6619 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.293e-05/0.1605, allocations: 75.28 kB / 0.6619 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1605, allocations: 0 / 0.6619 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001716/0.1606, allocations: 0 / 0.6619 GB, free: 7.59 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.0004736/0.1611, allocations: 0.6085 MB / 0.6625 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001508/0.1613, allocations: 11.98 kB / 0.6625 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1613, allocations: 0 / 0.6625 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.373e-05/0.1613, allocations: 4 kB / 0.6626 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.1615, allocations: 4.156 kB / 0.6626 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003459/0.1618, allocations: 122.5 kB / 0.6627 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.1621, allocations: 0.669 MB / 0.6633 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.85e-05/0.1622, allocations: 0 / 0.6633 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.731e-05/0.1622, allocations: 11.44 kB / 0.6633 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1622, allocations: 0 / 0.6633 GB, free: 6.062 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.1834, allocations: 0.9277 MB / 0.6642 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.69/7.874, allocations: 10.23 kB / 0.6643 GB, free: 5.215 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Functions_Examples_RegStep.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1)