Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.SmoothHeavisideDerivatives,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.005448/0.005448, 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.001331/0.001331, allocations: 202.1 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.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8291/0.8291, allocations: 132.2 MB / 422.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 63.91 kB / 0.5809 GB, free: 7.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4726/0.4746, allocations: 80.21 MB / 0.6592 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.001483/0.4761, allocations: 0.5734 MB / 0.6598 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001115/0.4772, allocations: 1.116 MB / 0.6609 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.86e-05/0.4773, allocations: 0 / 0.6609 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.338e-05/0.4773, allocations: 0 / 0.6609 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.4775, allocations: 18.11 kB / 0.6609 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 3.376e-06/0.4775, allocations: 0 / 0.6609 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.254e-05/0.4776, allocations: 10.25 kB / 0.6609 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.105e-05/0.4777, allocations: 2.266 kB / 0.6609 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.384e-05/0.4777, allocations: 5.25 kB / 0.6609 GB, free: 8.637 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.098e-05/0.4777, allocations: 5.859 kB / 0.6609 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.713e-06/0.4777, allocations: 0 / 0.6609 GB, free: 8.633 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001097/0.4778, allocations: 17.8 kB / 0.6609 GB, free: 8.629 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 5.47e-06/0.4778, allocations: 3.938 kB / 0.6609 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.667e-05/0.4779, allocations: 5.266 kB / 0.6609 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.07e-05/0.4779, allocations: 17.23 kB / 0.661 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.4779, allocations: 0 / 0.661 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.142e-06/0.478, allocations: 0 / 0.661 GB, free: 8.613 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.478, allocations: 3.938 kB / 0.661 GB, free: 8.609 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000209/0.4782, allocations: 319 kB / 0.6613 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.4782, allocations: 9.562 kB / 0.6613 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.38e-05/0.4782, allocations: 35.45 kB / 0.6613 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.33e-05/0.4783, allocations: 2.312 kB / 0.6613 GB, free: 8.219 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.436e-05/0.4783, allocations: 165.1 kB / 0.6615 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.4784, allocations: 2.359 kB / 0.6615 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.547e-05/0.4784, allocations: 1.75 kB / 0.6615 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.4785, allocations: 40.89 kB / 0.6615 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.4785, allocations: 0 / 0.6615 GB, free: 7.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.146e-06/0.4785, allocations: 5.375 kB / 0.6615 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.4785, allocations: 4 kB / 0.6615 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.709e-05/0.4786, allocations: 9.797 kB / 0.6615 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001073/0.4787, allocations: 155.8 kB / 0.6617 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001743/0.4789, allocations: 30.09 kB / 0.6617 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.975e-05/0.4789, allocations: 13.06 kB / 0.6617 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.479, allocations: 81.27 kB / 0.6618 GB, free: 7.645 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.4791, allocations: 40.58 kB / 0.6618 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.4791, allocations: 0 / 0.6618 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5): time 0.004235/0.4833, allocations: 0.569 MB / 0.6624 GB, free: 7.508 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.455e-05/0.4834, allocations: 56.72 kB / 0.6625 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.625e-05/0.4834, allocations: 90.42 kB / 0.6625 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.4834, allocations: 25.7 kB / 0.6626 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.039e-05/0.4834, allocations: 80.14 kB / 0.6626 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.176e-05/0.4835, allocations: 24.55 kB / 0.6627 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.301e-05/0.4835, allocations: 19.72 kB / 0.6627 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.4836, allocations: 313.5 kB / 0.663 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005831/0.4841, allocations: 82.95 kB / 0.6631 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005831/0.4847, allocations: 105.3 kB / 0.6632 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001163/0.4859, allocations: 189.1 kB / 0.6633 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4859, allocations: 2.016 kB / 0.6633 GB, free: 6.789 MB / 0.4981 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001261/0.4872, allocations: 224 kB / 0.6636 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.4872, allocations: 6.344 kB / 0.6636 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.4872, allocations: 1.531 kB / 0.6636 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.4873, allocations: 0 / 0.6636 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004034/0.4877, allocations: 50.81 kB / 0.6636 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.4877, allocations: 1.641 kB / 0.6636 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003351/0.488, allocations: 39.47 kB / 0.6637 GB, free: 6.715 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.535e-05/0.488, allocations: 3.141 kB / 0.6637 GB, free: 6.715 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.042e-05/0.4881, allocations: 113.5 kB / 0.6638 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.059e-05/0.4881, allocations: 6.016 kB / 0.6638 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001365/0.4895, allocations: 243.1 kB / 0.664 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.4895, allocations: 5.094 kB / 0.664 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4895, allocations: 0 / 0.664 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4896, allocations: 0.6094 kB / 0.664 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.491, allocations: 455.1 kB / 0.6644 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.4911, allocations: 0.7031 kB / 0.6644 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003809/0.4914, allocations: 48.84 kB / 0.6645 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.4915, allocations: 1.719 kB / 0.6645 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.4915, allocations: 4.562 kB / 0.6645 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.4915, allocations: 6.172 kB / 0.6645 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4915, allocations: 0 / 0.6645 GB, free: 6.172 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00125/0.4927, allocations: 305.4 kB / 0.6648 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.207e-05/0.4928, allocations: 83.19 kB / 0.6649 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.4928, allocations: 1.922 kB / 0.6649 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003669/0.4932, allocations: 38.77 kB / 0.6649 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.4932, allocations: 8.312 kB / 0.6649 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.4932, allocations: 5.766 kB / 0.6649 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.633e-05/0.4933, allocations: 83.22 kB / 0.665 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4933, allocations: 1.188 kB / 0.665 GB, free: 5.824 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002636/0.4935, allocations: 12.78 kB / 0.665 GB, free: 5.82 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 (5): * Single equations (assignments): 5 * 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.001496/0.495, allocations: 0.8395 MB / 0.6658 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00128/0.4963, allocations: 177.4 kB / 0.666 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4963, allocations: 1.188 kB / 0.666 GB, free: 5.062 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006005/0.4969, allocations: 91.72 kB / 0.6661 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.4972, allocations: 10.06 kB / 0.6661 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.4985, allocations: 244.3 kB / 0.6663 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.4986, allocations: 0.6797 MB / 0.667 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001683/0.4988, allocations: 24.28 kB / 0.667 GB, free: 4.133 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.382e-05/0.4989, allocations: 19.44 kB / 0.667 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of SimCode: time 5.81e-07/0.4989, allocations: 0 / 0.667 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.5197, allocations: 1.638 MB / 0.6686 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.852/8.371, allocations: 2.953 kB / 0.6686 GB, free: 3.238 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_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_SmoothHeavisideDerivatives.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)