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.005596/0.005596, allocations: 98.89 kB / 15.73 MB, free: 6.031 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.001305/0.001305, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8163/0.8163, allocations: 132.2 MB / 422.7 MB, free: 6.539 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 64.91 kB / 0.5809 GB, free: 24.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1929, allocations: 80.2 MB / 0.6592 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.RegStep): time 0.001782/0.1947, allocations: 0.5798 MB / 0.6598 GB, free: 10.21 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0001977/0.1949, allocations: 47.78 kB / 0.6598 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.067e-06/0.195, allocations: 4 kB / 0.6598 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 6.061e-06/0.195, allocations: 0 / 0.6598 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.396e-06/0.195, allocations: 0 / 0.6598 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001525/0.1952, allocations: 7.984 kB / 0.6599 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.009e-05/0.1952, allocations: 4 kB / 0.6599 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.99e-05/0.1953, allocations: 11.92 kB / 0.6599 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.235e-05/0.1953, allocations: 3.938 kB / 0.6599 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.095e-05/0.1953, allocations: 4 kB / 0.6599 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 9.107e-06/0.1953, allocations: 0 / 0.6599 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.71e-05/0.1954, allocations: 23.97 kB / 0.6599 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.736e-06/0.1954, allocations: 0 / 0.6599 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.605e-05/0.1954, allocations: 3.938 kB / 0.6599 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.216e-05/0.1955, allocations: 11.98 kB / 0.6599 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1956, allocations: 4 kB / 0.6599 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.373e-06/0.1956, allocations: 0 / 0.6599 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.514e-06/0.1956, allocations: 4 kB / 0.6599 GB, free: 10.08 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.0003539/0.1959, allocations: 315.8 kB / 0.6602 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.196, allocations: 8.031 kB / 0.6602 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.306e-05/0.196, allocations: 30.75 kB / 0.6603 GB, free: 9.676 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002426/0.1963, allocations: 16.91 kB / 0.6603 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.469e-05/0.1964, allocations: 166.9 kB / 0.6604 GB, free: 9.461 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.296e-06/0.1964, allocations: 4.375 kB / 0.6604 GB, free: 9.457 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-06/0.1964, allocations: 4.375 kB / 0.6604 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.671e-05/0.1965, allocations: 34.25 kB / 0.6605 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.069e-06/0.1965, allocations: 3.938 kB / 0.6605 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.775e-06/0.1965, allocations: 4 kB / 0.6605 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-06/0.1965, allocations: 3.938 kB / 0.6605 GB, free: 9.402 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.23e-05/0.1966, allocations: 11.92 kB / 0.6605 GB, free: 9.391 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001185/0.1967, allocations: 149.7 kB / 0.6606 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.282e-05/0.1968, allocations: 22.95 kB / 0.6607 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.216e-05/0.1969, allocations: 12.91 kB / 0.6607 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.638e-05/0.1969, allocations: 0 / 0.6607 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.426e-05/0.197, allocations: 34.56 kB / 0.6607 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.197, allocations: 0 / 0.6607 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0002283/0.1972, allocations: 57.64 kB / 0.6608 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.1972, allocations: 51.41 kB / 0.6608 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.627e-05/0.1973, allocations: 89.86 kB / 0.6609 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.1973, allocations: 25.7 kB / 0.6609 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.409e-05/0.1973, allocations: 80.14 kB / 0.661 GB, free: 8.77 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.1974, allocations: 3.953 kB / 0.661 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.113e-05/0.1974, allocations: 21.72 kB / 0.661 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.96e-05/0.1975, allocations: 310.8 kB / 0.6613 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.834e-05/0.1976, allocations: 12.02 kB / 0.6613 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.889e-05/0.1976, allocations: 4 kB / 0.6613 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.487e-05/0.1977, allocations: 12.84 kB / 0.6613 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.1977, allocations: 0 / 0.6613 GB, free: 8.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001256/0.1979, allocations: 49.61 kB / 0.6614 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.1979, allocations: 4.094 kB / 0.6614 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1979, allocations: 7.938 kB / 0.6614 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1979, allocations: 0 / 0.6614 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.194e-05/0.198, allocations: 4 kB / 0.6614 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.198, allocations: 0 / 0.6614 GB, free: 8.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.546e-05/0.198, allocations: 3.984 kB / 0.6614 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.198, allocations: 7.938 kB / 0.6614 GB, free: 8.312 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 6.311e-05/0.1981, allocations: 110.7 kB / 0.6615 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-06/0.1981, allocations: 0 / 0.6615 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.061e-05/0.1982, allocations: 15.05 kB / 0.6615 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.1982, allocations: 0 / 0.6615 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1982, allocations: 0 / 0.6615 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1982, allocations: 0 / 0.6615 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.371e-05/0.1983, allocations: 153.7 kB / 0.6617 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1983, allocations: 0 / 0.6617 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/0.1983, allocations: 7.938 kB / 0.6617 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.1983, allocations: 0 / 0.6617 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.1983, allocations: 3.938 kB / 0.6617 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1984, allocations: 0 / 0.6617 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1984, allocations: 7.938 kB / 0.6617 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/0.1985, allocations: 69.11 kB / 0.6618 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.22e-05/0.1986, allocations: 77.11 kB / 0.6618 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.1986, allocations: 3.938 kB / 0.6619 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.204e-05/0.1986, allocations: 0 / 0.6619 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.276e-05/0.1986, allocations: 3.984 kB / 0.6619 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.1986, allocations: 8.031 kB / 0.6619 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.303e-05/0.1987, allocations: 75.28 kB / 0.6619 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1987, allocations: 0 / 0.6619 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001764/0.1989, allocations: 0 / 0.6619 GB, free: 7.688 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.0004162/0.1993, allocations: 0.6046 MB / 0.6625 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001386/0.1994, allocations: 19.97 kB / 0.6625 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1994, allocations: 0 / 0.6625 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.515e-05/0.1995, allocations: 4 kB / 0.6625 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001414/0.1996, allocations: 0 / 0.6625 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003084/0.2, allocations: 106.7 kB / 0.6626 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002351/0.2002, allocations: 0.6807 MB / 0.6633 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.871e-05/0.2002, allocations: 3.938 kB / 0.6633 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.2003, allocations: 7.438 kB / 0.6633 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.2003, allocations: 0 / 0.6633 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.2177, allocations: 0.9404 MB / 0.6642 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.376/7.593, allocations: 11.38 kB / 0.6643 GB, free: 5.309 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)