Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.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.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside",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.00741/0.00741, allocations: 99 kB / 15.73 MB, free: 6.059 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.001339/0.001339, allocations: 192.9 kB / 16.67 MB, free: 5.977 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.012/1.012, allocations: 135.1 MB / 425.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 67.89 kB / 0.5852 GB, free: 3.867 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4366/0.4381, allocations: 80.9 MB / 0.6642 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.002138/0.4403, allocations: 1.446 MB / 0.6656 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006646/0.441, allocations: 468.4 kB / 0.666 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.295e-05/0.441, allocations: 1.281 kB / 0.666 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.524e-05/0.4411, allocations: 3.938 kB / 0.666 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.494e-05/0.4411, allocations: 5.25 kB / 0.666 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.4414, allocations: 18.08 kB / 0.666 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.273e-05/0.4414, allocations: 26.77 kB / 0.6661 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.638e-05/0.4415, allocations: 2.688 kB / 0.6661 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.7e-05/0.4416, allocations: 24.05 kB / 0.6661 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.557e-05/0.4417, allocations: 14.94 kB / 0.6661 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.224e-05/0.4417, allocations: 2.469 kB / 0.6661 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.388e-05/0.4417, allocations: 17.98 kB / 0.6661 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.4418, allocations: 7.938 kB / 0.6661 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.502e-05/0.4418, allocations: 6.5 kB / 0.6661 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.4419, allocations: 36.8 kB / 0.6662 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.442, allocations: 1.469 kB / 0.6662 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.014e-06/0.442, allocations: 0 / 0.6662 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.343e-06/0.442, allocations: 0 / 0.6662 GB, free: 5.672 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.0004246/0.4424, allocations: 354.5 kB / 0.6665 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.4425, allocations: 9.5 kB / 0.6665 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.367e-05/0.4425, allocations: 35.69 kB / 0.6666 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.4425, allocations: 2.469 kB / 0.6666 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.336e-05/0.4426, allocations: 169.8 kB / 0.6667 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.4426, allocations: 5.531 kB / 0.6667 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.4426, allocations: 1.781 kB / 0.6667 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001629/0.4428, allocations: 52.86 kB / 0.6668 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.4428, allocations: 4 kB / 0.6668 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.4428, allocations: 1.281 kB / 0.6668 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4428, allocations: 3.938 kB / 0.6668 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001586/0.443, allocations: 31.94 kB / 0.6668 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002539/0.4433, allocations: 251.9 kB / 0.6671 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001232/0.4434, allocations: 39.75 kB / 0.6671 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.374e-05/0.4435, allocations: 23.44 kB / 0.6671 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001027/0.4436, allocations: 83.41 kB / 0.6672 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.64e-05/0.4436, allocations: 31.66 kB / 0.6672 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.4436, allocations: 1.188 kB / 0.6672 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.000349/0.444, allocations: 88.89 kB / 0.6673 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.444, allocations: 51.41 kB / 0.6674 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.695e-05/0.4441, allocations: 108.3 kB / 0.6675 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.155e-06/0.4441, allocations: 25.7 kB / 0.6675 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.767e-05/0.4441, allocations: 81.7 kB / 0.6676 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.714e-05/0.4442, allocations: 9.047 kB / 0.6676 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.781e-05/0.4442, allocations: 12.06 kB / 0.6676 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.056e-05/0.4442, allocations: 316.2 kB / 0.6679 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.339e-05/0.4443, allocations: 24.72 kB / 0.6679 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.21e-05/0.4444, allocations: 14.02 kB / 0.6679 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000144/0.4446, allocations: 35.83 kB / 0.668 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.4446, allocations: 0 / 0.668 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001836/0.4448, allocations: 85.91 kB / 0.6681 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.4448, allocations: 7.812 kB / 0.6681 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.4448, allocations: 0 / 0.6681 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.4448, allocations: 0 / 0.6681 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.886e-05/0.4449, allocations: 13.3 kB / 0.6681 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-06/0.4449, allocations: 1.156 kB / 0.6681 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.734e-05/0.445, allocations: 2.906 kB / 0.6681 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.445, allocations: 4.953 kB / 0.6681 GB, free: 3.695 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 (2): * Single equations (assignments): 2 * 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.255e-05/0.445, allocations: 115.9 kB / 0.6682 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.429e-05/0.4451, allocations: 1.375 kB / 0.6682 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000217/0.4453, allocations: 75.09 kB / 0.6683 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4453, allocations: 1.062 kB / 0.6683 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.4453, allocations: 0 / 0.6683 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-06/0.4453, allocations: 0 / 0.6683 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.4454, allocations: 163.3 kB / 0.6684 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4455, allocations: 32 / 0.6684 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.549e-05/0.4455, allocations: 9.719 kB / 0.6684 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4455, allocations: 1.406 kB / 0.6684 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.4455, allocations: 3.984 kB / 0.6684 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4455, allocations: 0 / 0.6684 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.4455, allocations: 1.125 kB / 0.6684 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.4457, allocations: 167.6 kB / 0.6686 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.883e-05/0.4458, allocations: 86.31 kB / 0.6687 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.4458, allocations: 0 / 0.6687 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.469e-05/0.4459, allocations: 4.031 kB / 0.6687 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.685e-05/0.4459, allocations: 13.27 kB / 0.6687 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.4459, allocations: 1.594 kB / 0.6687 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.452e-05/0.446, allocations: 83.47 kB / 0.6688 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.446, allocations: 0 / 0.6688 GB, free: 2.953 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002286/0.4462, allocations: 8.875 kB / 0.6688 GB, free: 2.949 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 (2): * Single equations (assignments): 2 * 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.0004337/0.4466, allocations: 0.701 MB / 0.6695 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002168/0.4469, allocations: 41.53 kB / 0.6695 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.4469, allocations: 3.938 kB / 0.6695 GB, free: 2.238 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.364e-05/0.447, allocations: 16.02 kB / 0.6695 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.4473, allocations: 6.672 kB / 0.6695 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.4477, allocations: 145.7 kB / 0.6697 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001118/0.4478, allocations: 0.6771 MB / 0.6703 GB, free: 1.371 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.742e-05/0.4478, allocations: 9.781 kB / 0.6703 GB, free: 1.363 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.4479, allocations: 8.875 kB / 0.6704 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.4479, allocations: 0 / 0.6704 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.4649, allocations: 1.417 MB / 0.6717 GB, free: 0.543 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/8.063, allocations: 8.828 kB / 0.6717 GB, free: 0.5391 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)