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.007295/0.007295, allocations: 102.6 kB / 15.73 MB, free: 6.035 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.001762/0.001761, allocations: 190.2 kB / 16.67 MB, free: 5.973 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.391/1.391, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9602/0.9602, allocations: 135.1 MB / 425.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.91 kB / 0.5851 GB, free: 3.867 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4408/0.4421, allocations: 80.9 MB / 0.6641 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothHeaviside): time 0.002257/0.4444, allocations: 1.447 MB / 0.6656 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006264/0.445, allocations: 465.1 kB / 0.666 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.257e-05/0.4451, allocations: 1.531 kB / 0.666 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.652e-05/0.4451, allocations: 0 / 0.666 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.526e-05/0.4452, allocations: 7.922 kB / 0.666 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001952/0.4454, allocations: 23.55 kB / 0.666 GB, free: 5.746 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.925e-05/0.4454, allocations: 21.23 kB / 0.6661 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.006e-05/0.4455, allocations: 4.344 kB / 0.6661 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.243e-05/0.4456, allocations: 14.75 kB / 0.6661 GB, free: 5.723 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.975e-05/0.4456, allocations: 15.84 kB / 0.6661 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.3e-05/0.4457, allocations: 5.406 kB / 0.6661 GB, free: 5.707 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.924e-05/0.4457, allocations: 19.3 kB / 0.6661 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.395e-05/0.4457, allocations: 11.92 kB / 0.6661 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.29e-05/0.4458, allocations: 10.81 kB / 0.6661 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001032/0.4459, allocations: 24.67 kB / 0.6662 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.4459, allocations: 0 / 0.6662 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.887e-06/0.4459, allocations: 5.219 kB / 0.6662 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.4459, allocations: 3.938 kB / 0.6662 GB, free: 5.656 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.0003969/0.4463, allocations: 353.6 kB / 0.6665 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.4464, allocations: 10.72 kB / 0.6665 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.4464, allocations: 34.73 kB / 0.6665 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.686e-05/0.4464, allocations: 2.062 kB / 0.6665 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.4465, allocations: 171.1 kB / 0.6667 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.4466, allocations: 384 / 0.6667 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-06/0.4466, allocations: 1.5 kB / 0.6667 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001755/0.4468, allocations: 53.11 kB / 0.6668 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4468, allocations: 0 / 0.6668 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.894e-06/0.4468, allocations: 1.156 kB / 0.6668 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.4468, allocations: 7.938 kB / 0.6668 GB, free: 4.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001672/0.447, allocations: 43.09 kB / 0.6668 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003143/0.4473, allocations: 245.9 kB / 0.667 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001203/0.4474, allocations: 39.92 kB / 0.6671 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.269e-05/0.4475, allocations: 26.12 kB / 0.6671 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.881e-05/0.4476, allocations: 79.8 kB / 0.6672 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.681e-05/0.4477, allocations: 32.12 kB / 0.6672 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.4477, allocations: 0 / 0.6672 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0003344/0.448, allocations: 88.58 kB / 0.6673 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.448, allocations: 56.75 kB / 0.6674 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.378e-05/0.4481, allocations: 107.4 kB / 0.6675 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.534e-06/0.4481, allocations: 27.05 kB / 0.6675 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.517e-05/0.4481, allocations: 81.39 kB / 0.6676 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.549e-05/0.4482, allocations: 7.906 kB / 0.6676 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.4482, allocations: 12.22 kB / 0.6676 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.451e-05/0.4482, allocations: 319.8 kB / 0.6679 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.99e-05/0.4483, allocations: 22.05 kB / 0.6679 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.924e-05/0.4484, allocations: 14.2 kB / 0.6679 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.4485, allocations: 47.03 kB / 0.668 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.4486, allocations: 0 / 0.668 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001755/0.4487, allocations: 65.36 kB / 0.668 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.4488, allocations: 7.344 kB / 0.668 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.4488, allocations: 0 / 0.668 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.4488, allocations: 9.516 kB / 0.668 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.176e-05/0.4489, allocations: 5.438 kB / 0.6681 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.4489, allocations: 0 / 0.6681 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.431e-05/0.4489, allocations: 8.328 kB / 0.6681 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.4489, allocations: 0 / 0.6681 GB, free: 3.688 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 4.77e-05/0.449, allocations: 114.2 kB / 0.6682 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.235e-05/0.449, allocations: 5.406 kB / 0.6682 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002097/0.4492, allocations: 74.16 kB / 0.6682 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.4492, allocations: 1 kB / 0.6682 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.381e-06/0.4493, allocations: 3.984 kB / 0.6682 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.4493, allocations: 1.562 kB / 0.6682 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.4494, allocations: 161.2 kB / 0.6684 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.4494, allocations: 1.5 kB / 0.6684 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.313e-05/0.4494, allocations: 13.17 kB / 0.6684 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4495, allocations: 0 / 0.6684 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.4495, allocations: 1.125 kB / 0.6684 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4495, allocations: 0 / 0.6684 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4495, allocations: 1.344 kB / 0.6684 GB, free: 3.289 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/0.4497, allocations: 167.2 kB / 0.6686 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.234e-05/0.4497, allocations: 86.23 kB / 0.6687 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.4497, allocations: 0 / 0.6687 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.302e-05/0.4498, allocations: 7.609 kB / 0.6687 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-05/0.4498, allocations: 6.406 kB / 0.6687 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.4498, allocations: 0 / 0.6687 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.443e-05/0.4499, allocations: 87.27 kB / 0.6688 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4499, allocations: 1.469 kB / 0.6688 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000217/0.4501, allocations: 5.875 kB / 0.6688 GB, free: 2.941 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.0003875/0.4505, allocations: 0.6959 MB / 0.6694 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001966/0.4507, allocations: 45.64 kB / 0.6695 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4507, allocations: 96 / 0.6695 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.998e-05/0.4508, allocations: 19.8 kB / 0.6695 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.4511, allocations: 13.64 kB / 0.6695 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003324/0.4514, allocations: 148.2 kB / 0.6697 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.4515, allocations: 0.6767 MB / 0.6703 GB, free: 1.359 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.292e-05/0.4515, allocations: 5.219 kB / 0.6703 GB, free: 1.355 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.442e-05/0.4516, allocations: 12.78 kB / 0.6703 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of SimCode: time 2.3e-07/0.4516, allocations: 0 / 0.6703 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01531/0.4669, allocations: 1.426 MB / 0.6717 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.323/7.79, allocations: 8.797 kB / 0.6717 GB, free: 0.5234 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothHeaviside.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1)