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.001003/0.001003, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001024/0.001024, allocations: 193.4 kB / 16.25 MB, free: 6.629 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.309/1.309, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7109/0.7109, allocations: 132.2 MB / 422.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 67.31 kB / 0.5014 GB, free: 4.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3836, allocations: 80.2 MB / 0.5797 GB, free: 4.559 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.0017/0.3854, allocations: 0.6511 MB / 0.5803 GB, free: 4.152 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.3864, allocations: 1.099 MB / 0.5814 GB, free: 3.336 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.665e-05/0.3865, allocations: 7.938 kB / 0.5814 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.231e-05/0.3865, allocations: 0 / 0.5814 GB, free: 3.328 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.3866, allocations: 17.52 kB / 0.5814 GB, free: 3.32 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.235e-06/0.3867, allocations: 0 / 0.5814 GB, free: 3.32 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 2.93e-05/0.3867, allocations: 10.95 kB / 0.5814 GB, free: 3.312 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.306e-05/0.3867, allocations: 6.031 kB / 0.5814 GB, free: 3.309 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.588e-06/0.3867, allocations: 5 kB / 0.5814 GB, free: 3.305 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.402e-05/0.3868, allocations: 1.625 kB / 0.5814 GB, free: 3.305 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 5.31e-06/0.3868, allocations: 1.062 kB / 0.5814 GB, free: 3.305 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.808e-05/0.3869, allocations: 20.86 kB / 0.5815 GB, free: 3.297 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.38e-06/0.3869, allocations: 7.984 kB / 0.5815 GB, free: 3.289 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 9.738e-06/0.3869, allocations: 0.8438 kB / 0.5815 GB, free: 3.289 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 5.544e-05/0.3869, allocations: 16.52 kB / 0.5815 GB, free: 3.281 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.3869, allocations: 1.312 kB / 0.5815 GB, free: 3.281 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.387, allocations: 0 / 0.5815 GB, free: 3.281 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.367e-06/0.387, allocations: 0 / 0.5815 GB, free: 3.281 MB / 430.1 MB 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.0001423/0.3871, allocations: 317.4 kB / 0.5818 GB, free: 2.934 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.3871, allocations: 9.188 kB / 0.5818 GB, free: 2.934 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.21e-05/0.3872, allocations: 36.73 kB / 0.5818 GB, free: 2.891 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.458e-05/0.3872, allocations: 4.844 kB / 0.5818 GB, free: 2.887 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 3.999e-05/0.3872, allocations: 167 kB / 0.582 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.535e-06/0.3872, allocations: 384 / 0.582 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.3873, allocations: 2.219 kB / 0.582 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.137e-05/0.3873, allocations: 41.38 kB / 0.582 GB, free: 2.648 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.3873, allocations: 0 / 0.582 GB, free: 2.648 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.819e-06/0.3874, allocations: 4 kB / 0.582 GB, free: 2.645 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-06/0.3874, allocations: 0.9062 kB / 0.582 GB, free: 2.645 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.558e-05/0.3874, allocations: 6.828 kB / 0.5821 GB, free: 2.645 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.847e-05/0.3875, allocations: 150.2 kB / 0.5822 GB, free: 2.453 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001191/0.3876, allocations: 33.64 kB / 0.5822 GB, free: 2.426 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.637e-05/0.3876, allocations: 12.77 kB / 0.5822 GB, free: 2.414 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.826e-05/0.3877, allocations: 86.44 kB / 0.5823 GB, free: 2.316 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.374e-05/0.3877, allocations: 35.8 kB / 0.5824 GB, free: 2.273 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.3878, allocations: 0 / 0.5824 GB, free: 2.273 MB / 430.1 MB Notification: Performance of matching and sorting (n=5): time 0.004333/0.3921, allocations: 0.57 MB / 0.5829 GB, free: 2.184 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/0.3921, allocations: 56.53 kB / 0.583 GB, free: 2.117 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.641e-05/0.3922, allocations: 90.56 kB / 0.5831 GB, free: 2.02 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.3922, allocations: 26.83 kB / 0.5831 GB, free: 1.988 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.661e-05/0.3922, allocations: 80.14 kB / 0.5832 GB, free: 1.906 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.296e-05/0.3923, allocations: 27.2 kB / 0.5832 GB, free: 1.883 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.603e-05/0.3923, allocations: 24.78 kB / 0.5832 GB, free: 1.859 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.944e-05/0.3924, allocations: 312.6 kB / 0.5835 GB, free: 1.547 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006094/0.393, allocations: 87.31 kB / 0.5836 GB, free: 1.535 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006059/0.3936, allocations: 108.4 kB / 0.5837 GB, free: 1.496 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001138/0.3948, allocations: 185.6 kB / 0.5839 GB, free: 1.453 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3948, allocations: 0.75 kB / 0.5839 GB, free: 1.453 MB / 430.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.00122/0.396, allocations: 221.7 kB / 0.5841 GB, free: 1.391 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.396, allocations: 5.719 kB / 0.5841 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.396, allocations: 0 / 0.5841 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.396, allocations: 2.531 kB / 0.5841 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.3964, allocations: 50.19 kB / 0.5841 GB, free: 1.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3965, allocations: 1.188 kB / 0.5841 GB, free: 1.387 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003402/0.3968, allocations: 39.03 kB / 0.5842 GB, free: 1.383 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.475e-05/0.3968, allocations: 4.906 kB / 0.5842 GB, free: 1.383 MB / 430.1 MB 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 5.809e-05/0.3969, allocations: 117.4 kB / 0.5843 GB, free: 1.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/0.3969, allocations: 5.125 kB / 0.5843 GB, free: 1.258 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.3982, allocations: 234.4 kB / 0.5845 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3982, allocations: 1.797 kB / 0.5845 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.3982, allocations: 0 / 0.5845 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.3982, allocations: 1.688 kB / 0.5845 GB, free: 1.191 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.3996, allocations: 454.4 kB / 0.585 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3997, allocations: 4 kB / 0.585 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.4, allocations: 45.05 kB / 0.585 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.4, allocations: 1.031 kB / 0.585 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.4001, allocations: 9.312 kB / 0.585 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.4001, allocations: 1.828 kB / 0.585 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4001, allocations: 0 / 0.585 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/0.4013, allocations: 309.6 kB / 0.5853 GB, free: 0.6953 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.636e-05/0.4014, allocations: 82.67 kB / 0.5854 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.4014, allocations: 1.422 kB / 0.5854 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/0.4018, allocations: 39.58 kB / 0.5854 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.373e-05/0.4018, allocations: 3.281 kB / 0.5854 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.4018, allocations: 10.14 kB / 0.5854 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of sorting global known variables: time 1.081e-05/0.4018, allocations: 75.28 kB / 0.5855 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4018, allocations: 0.5625 kB / 0.5855 GB, free: 0.5117 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002489/0.4021, allocations: 9.766 kB / 0.5855 GB, free: 0.5117 MB / 430.1 MB 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.001516/0.4036, allocations: 0.8421 MB / 0.5863 GB, free: 15.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.4049, allocations: 183.8 kB / 0.5865 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4049, allocations: 0 / 0.5865 GB, free: 15.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005809/0.4055, allocations: 92.88 kB / 0.5866 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002041/0.4057, allocations: 5.719 kB / 0.5866 GB, free: 15.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.4069, allocations: 245.2 kB / 0.5869 GB, free: 15.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.4071, allocations: 0.6762 MB / 0.5875 GB, free: 14.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002149/0.4073, allocations: 28.73 kB / 0.5875 GB, free: 14.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.072e-05/0.4074, allocations: 11.97 kB / 0.5875 GB, free: 14.9 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.4074, allocations: 0 / 0.5875 GB, free: 14.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2723/0.6798, allocations: 1.525 MB / 0.589 GB, free: 14.68 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001898/0.68, allocations: 205.9 kB / 0.5892 GB, free: 14.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/2.295, allocations: 2.297 kB / 0.5892 GB, free: 14.43 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1)