Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.SmoothLimit.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.Examples.SmoothLimit,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_SmoothLimit",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.001119/0.001119, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.325/1.325, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7869/0.7869, allocations: 132.2 MB / 422.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.8 kB / 0.5019 GB, free: 3.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4452/0.4466, allocations: 80.2 MB / 0.5802 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothLimit): time 0.002806/0.4494, allocations: 1.451 MB / 0.5816 GB, free: 3.551 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009373/0.4504, allocations: 0.5729 MB / 0.5822 GB, free: 3.145 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.923e-05/0.4505, allocations: 0.875 kB / 0.5822 GB, free: 3.145 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 3.091e-05/0.4505, allocations: 4.688 kB / 0.5822 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.802e-05/0.4506, allocations: 4.875 kB / 0.5822 GB, free: 3.137 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.4509, allocations: 49.72 kB / 0.5822 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.259e-05/0.451, allocations: 22.16 kB / 0.5822 GB, free: 3.105 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.949e-05/0.4511, allocations: 13.19 kB / 0.5823 GB, free: 3.098 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.21e-05/0.4512, allocations: 15.41 kB / 0.5823 GB, free: 3.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.228e-05/0.4512, allocations: 15.61 kB / 0.5823 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.4512, allocations: 1.469 kB / 0.5823 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.4514, allocations: 53.56 kB / 0.5823 GB, free: 3.066 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.866e-05/0.4514, allocations: 10.06 kB / 0.5823 GB, free: 3.059 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.895e-05/0.4515, allocations: 16.78 kB / 0.5824 GB, free: 3.047 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.4516, allocations: 61.59 kB / 0.5824 GB, free: 3.023 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4516, allocations: 0.875 kB / 0.5824 GB, free: 3.023 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4516, allocations: 3.938 kB / 0.5824 GB, free: 3.02 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.4517, allocations: 0 / 0.5824 GB, free: 3.02 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.0003546/0.452, allocations: 360.6 kB / 0.5828 GB, free: 2.645 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.4521, allocations: 10.58 kB / 0.5828 GB, free: 2.645 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.693e-05/0.4521, allocations: 34.69 kB / 0.5828 GB, free: 2.602 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.548e-05/0.4521, allocations: 3.531 kB / 0.5828 GB, free: 2.602 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.346e-05/0.4522, allocations: 168.7 kB / 0.583 GB, free: 2.402 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.4522, allocations: 5.188 kB / 0.583 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.4522, allocations: 1.469 kB / 0.583 GB, free: 2.398 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001328/0.4524, allocations: 46.84 kB / 0.583 GB, free: 2.359 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.4524, allocations: 4 kB / 0.583 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.4524, allocations: 0.8125 kB / 0.583 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.4524, allocations: 1.281 kB / 0.583 GB, free: 2.355 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.4525, allocations: 19.25 kB / 0.5831 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002889/0.4528, allocations: 258.1 kB / 0.5833 GB, free: 2.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.492e-05/0.4529, allocations: 31.06 kB / 0.5833 GB, free: 2.043 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.924e-05/0.453, allocations: 21.23 kB / 0.5833 GB, free: 2.027 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007653/0.4538, allocations: 470.5 kB / 0.5838 GB, free: 1.559 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.4538, allocations: 31.94 kB / 0.5838 GB, free: 1.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 1.503e-06/0.4538, allocations: 5.125 kB / 0.5838 GB, free: 1.516 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002659/0.4541, allocations: 66.02 kB / 0.5839 GB, free: 1.473 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.4541, allocations: 52.44 kB / 0.5839 GB, free: 1.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.468e-05/0.4542, allocations: 107.3 kB / 0.584 GB, free: 1.309 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.4542, allocations: 26.31 kB / 0.5841 GB, free: 1.277 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.676e-05/0.4543, allocations: 89.88 kB / 0.5842 GB, free: 1.188 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-05/0.4543, allocations: 1.938 kB / 0.5842 GB, free: 1.188 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.079e-05/0.4543, allocations: 22.03 kB / 0.5842 GB, free: 1.164 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.56e-05/0.4544, allocations: 322 kB / 0.5845 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.419e-05/0.4545, allocations: 6.422 kB / 0.5845 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.747e-05/0.4545, allocations: 11.7 kB / 0.5845 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.146e-05/0.4546, allocations: 26 kB / 0.5845 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4546, allocations: 0 / 0.5845 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001272/0.4547, allocations: 63.62 kB / 0.5846 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.4548, allocations: 5 kB / 0.5846 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.4548, allocations: 1.594 kB / 0.5846 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.4548, allocations: 0 / 0.5846 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.304e-05/0.4549, allocations: 7 kB / 0.5846 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.561e-06/0.4549, allocations: 0 / 0.5846 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.446e-05/0.4549, allocations: 7.453 kB / 0.5846 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.4549, allocations: 6.047 kB / 0.5846 GB, free: 0.7734 MB / 430.1 MB 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.613e-05/0.455, allocations: 117.7 kB / 0.5847 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.688e-05/0.455, allocations: 4.641 kB / 0.5847 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.4552, allocations: 68.94 kB / 0.5848 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4552, allocations: 1.344 kB / 0.5848 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.4552, allocations: 0.7031 kB / 0.5848 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4552, allocations: 0.75 kB / 0.5848 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001238/0.4554, allocations: 166.3 kB / 0.585 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4554, allocations: 0 / 0.585 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.476e-05/0.4554, allocations: 7.453 kB / 0.585 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.4554, allocations: 4.031 kB / 0.585 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.852e-06/0.4554, allocations: 0.6094 kB / 0.585 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.4554, allocations: 1.188 kB / 0.585 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4554, allocations: 4 kB / 0.585 GB, free: 400 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.4556, allocations: 155.6 kB / 0.5851 GB, free: 252 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.882e-05/0.4556, allocations: 78.95 kB / 0.5852 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.4556, allocations: 1.406 kB / 0.5852 GB, free: 156 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.02e-05/0.4557, allocations: 5.781 kB / 0.5852 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.4557, allocations: 6.547 kB / 0.5852 GB, free: 148 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.4557, allocations: 1.766 kB / 0.5852 GB, free: 148 kB / 430.1 MB Notification: Performance of sorting global known variables: time 3.151e-05/0.4558, allocations: 87.83 kB / 0.5853 GB, free: 68 kB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4558, allocations: 0 / 0.5853 GB, free: 68 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.000242/0.456, allocations: 13.62 kB / 0.5853 GB, free: 68 kB / 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 (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.0004882/0.4565, allocations: 0.7039 MB / 0.586 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.4567, allocations: 27.27 kB / 0.586 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4567, allocations: 0 / 0.586 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.934e-05/0.4568, allocations: 12.98 kB / 0.586 GB, free: 15.37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002003/0.457, allocations: 4.828 kB / 0.586 GB, free: 15.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004266/0.4574, allocations: 159.2 kB / 0.5862 GB, free: 15.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002219/0.4576, allocations: 0.679 MB / 0.5869 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.116e-05/0.4577, allocations: 1.312 kB / 0.5869 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.094e-05/0.4577, allocations: 10.5 kB / 0.5869 GB, free: 14.51 MB / 446.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4577, allocations: 0 / 0.5869 GB, free: 14.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01901/0.4767, allocations: 1.578 MB / 0.5884 GB, free: 14.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.45/7.927, allocations: 2.344 kB / 0.5884 GB, free: 14.12 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.SmoothLimit_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IDEAS_IDEAS_Utilities_Math_Examples_SmoothLimit.fmu > IDEAS_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)