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.008368/0.008368, allocations: 103 kB / 15.74 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.001814/0.001814, allocations: 189.2 kB / 16.67 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.484/1.484, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8698/0.8698, allocations: 132.2 MB / 422.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001885/0.001886, allocations: 72.12 kB / 0.5809 GB, free: 24.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2233/0.2252, allocations: 80.2 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothLimit): time 0.004728/0.23, allocations: 1.466 MB / 0.6606 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001702/0.2317, allocations: 0.5618 MB / 0.6612 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.51e-05/0.2318, allocations: 0 / 0.6612 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.219e-05/0.2319, allocations: 3.938 kB / 0.6612 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.467e-05/0.232, allocations: 3.938 kB / 0.6612 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.2324, allocations: 51.83 kB / 0.6612 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.2e-05/0.2325, allocations: 27.86 kB / 0.6613 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001259/0.2326, allocations: 15.97 kB / 0.6613 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.362e-05/0.2327, allocations: 7.938 kB / 0.6613 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.786e-05/0.2328, allocations: 15.92 kB / 0.6613 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.2328, allocations: 4 kB / 0.6613 GB, free: 8.551 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.233, allocations: 51.95 kB / 0.6613 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.2331, allocations: 15.92 kB / 0.6614 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.739e-05/0.2331, allocations: 11.94 kB / 0.6614 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002129/0.2333, allocations: 64.08 kB / 0.6614 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2333, allocations: 0 / 0.6614 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.432e-06/0.2334, allocations: 0 / 0.6614 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2334, allocations: 0 / 0.6614 GB, free: 8.41 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.0006034/0.234, allocations: 351.3 kB / 0.6618 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.624e-05/0.234, allocations: 8.031 kB / 0.6618 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.978e-05/0.2341, allocations: 30.75 kB / 0.6618 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.2341, allocations: 12.89 kB / 0.6618 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.2343, allocations: 172.3 kB / 0.662 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.2344, allocations: 8.375 kB / 0.662 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.839e-06/0.2344, allocations: 384 / 0.662 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001766/0.2346, allocations: 49.75 kB / 0.662 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.2346, allocations: 0 / 0.662 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.2346, allocations: 0 / 0.662 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2346, allocations: 7.875 kB / 0.662 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001216/0.2348, allocations: 19.98 kB / 0.6621 GB, free: 7.664 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004347/0.2352, allocations: 260.9 kB / 0.6623 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.2353, allocations: 26.58 kB / 0.6623 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.106e-05/0.2354, allocations: 20.91 kB / 0.6624 GB, free: 7.301 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001146/0.2366, allocations: 477.3 kB / 0.6628 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.2366, allocations: 34.56 kB / 0.6628 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/0.2366, allocations: 0 / 0.6628 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0003546/0.237, allocations: 61.67 kB / 0.6629 GB, free: 6.633 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.691e-05/0.2371, allocations: 51.41 kB / 0.663 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.2372, allocations: 109.8 kB / 0.6631 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.2372, allocations: 29.83 kB / 0.6631 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.756e-05/0.2373, allocations: 84.14 kB / 0.6632 GB, free: 6.332 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.2374, allocations: 7.938 kB / 0.6632 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.888e-05/0.2374, allocations: 13.72 kB / 0.6632 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000186/0.2376, allocations: 322.8 kB / 0.6635 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.75e-05/0.2377, allocations: 8 kB / 0.6635 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.9e-05/0.2378, allocations: 15.92 kB / 0.6635 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.2379, allocations: 28.91 kB / 0.6635 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2379, allocations: 0 / 0.6635 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001986/0.2381, allocations: 57.64 kB / 0.6636 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2382, allocations: 4 kB / 0.6636 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2382, allocations: 0 / 0.6636 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2382, allocations: 0 / 0.6636 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.153e-05/0.2383, allocations: 7.984 kB / 0.6636 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.022e-06/0.2383, allocations: 0 / 0.6636 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.458e-05/0.2384, allocations: 8.031 kB / 0.6636 GB, free: 5.844 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.2384, allocations: 0 / 0.6636 GB, free: 5.844 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 0.0001178/0.2385, allocations: 122.6 kB / 0.6637 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.187e-05/0.2386, allocations: 0 / 0.6637 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.2388, allocations: 61.2 kB / 0.6638 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.2388, allocations: 3.984 kB / 0.6638 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.2389, allocations: 0 / 0.6638 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.2389, allocations: 4 kB / 0.6638 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000276/0.2392, allocations: 165.6 kB / 0.664 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2392, allocations: 0 / 0.664 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.076e-05/0.2392, allocations: 7.938 kB / 0.664 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2393, allocations: 0 / 0.664 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.2393, allocations: 7.984 kB / 0.664 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.673e-06/0.2393, allocations: 4 kB / 0.664 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2393, allocations: 0 / 0.664 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.2396, allocations: 159.4 kB / 0.6641 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.2397, allocations: 84.98 kB / 0.6642 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.2397, allocations: 7.984 kB / 0.6642 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.2398, allocations: 0 / 0.6642 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.964e-05/0.2398, allocations: 0 / 0.6642 GB, free: 5.121 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.2399, allocations: 4 kB / 0.6642 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 7.482e-05/0.2399, allocations: 87.27 kB / 0.6643 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2399, allocations: 0 / 0.6643 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004451/0.2404, allocations: 12 kB / 0.6643 GB, free: 5.02 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.0007802/0.2412, allocations: 0.7045 MB / 0.665 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001929/0.2414, allocations: 19.98 kB / 0.665 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.2414, allocations: 0 / 0.665 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.194e-05/0.2415, allocations: 20.08 kB / 0.665 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.2419, allocations: 5.719 kB / 0.6651 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006417/0.2425, allocations: 164.1 kB / 0.6652 GB, free: 4.043 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.243, allocations: 0.6768 MB / 0.6659 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.67e-05/0.243, allocations: 4 kB / 0.6659 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.119e-05/0.2431, allocations: 7.438 kB / 0.6659 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of SimCode: time 4.21e-07/0.2431, allocations: 0 / 0.6659 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02725/0.2703, allocations: 1.609 MB / 0.6675 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.805/8.075, allocations: 4.062 kB / 0.6675 GB, free: 1.797 MB / 0.4981 GB (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)