Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.SmoothLimit,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothLimit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothLimit,fileNamePrefix="IDEAS_dev_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.004885/0.004885, allocations: 98.7 kB / 15.73 MB, free: 6.055 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.001148/0.001148, allocations: 196 kB / 16.68 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7865/0.7865, allocations: 135.1 MB / 425.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 69.81 kB / 0.5851 GB, free: 21.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1473, allocations: 80.92 MB / 0.6642 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothLimit): time 0.002715/0.15, allocations: 1.458 MB / 0.6656 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001003/0.1511, allocations: 0.5579 MB / 0.6661 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.633e-05/0.1511, allocations: 0 / 0.6661 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.934e-05/0.1512, allocations: 3.938 kB / 0.6661 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.342e-05/0.1512, allocations: 3.938 kB / 0.6661 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.1515, allocations: 55.81 kB / 0.6662 GB, free: 4.172 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.62e-05/0.1516, allocations: 31.86 kB / 0.6662 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.039e-05/0.1517, allocations: 4 kB / 0.6662 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.35e-05/0.1518, allocations: 15.97 kB / 0.6662 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.098e-05/0.1518, allocations: 11.94 kB / 0.6663 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.1519, allocations: 4 kB / 0.6663 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.152, allocations: 51.95 kB / 0.6663 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.554e-05/0.152, allocations: 7.938 kB / 0.6663 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.529e-05/0.152, allocations: 15.92 kB / 0.6663 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.1522, allocations: 68.02 kB / 0.6664 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1522, allocations: 0 / 0.6664 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1522, allocations: 0 / 0.6664 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.1522, allocations: 0 / 0.6664 GB, free: 3.965 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.0004069/0.1526, allocations: 351.3 kB / 0.6667 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1527, allocations: 9.109 kB / 0.6667 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.907e-05/0.1527, allocations: 34.75 kB / 0.6668 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.654e-05/0.1527, allocations: 8.891 kB / 0.6668 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.1529, allocations: 176.2 kB / 0.6669 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.506e-06/0.1529, allocations: 4.375 kB / 0.667 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.1529, allocations: 4.375 kB / 0.667 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001327/0.153, allocations: 49.8 kB / 0.667 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.153, allocations: 0 / 0.667 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.657e-06/0.1531, allocations: 0 / 0.667 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1531, allocations: 0 / 0.667 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.199e-05/0.1532, allocations: 23.92 kB / 0.667 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003341/0.1535, allocations: 252.9 kB / 0.6673 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.467e-05/0.1536, allocations: 34.56 kB / 0.6673 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.053e-05/0.1537, allocations: 16.91 kB / 0.6673 GB, free: 2.859 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008242/0.1545, allocations: 473.4 kB / 0.6678 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.1545, allocations: 34.56 kB / 0.6678 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 8.375e-06/0.1545, allocations: 3.984 kB / 0.6678 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0002428/0.1548, allocations: 65.61 kB / 0.6679 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.1548, allocations: 51.41 kB / 0.6679 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.303e-05/0.1549, allocations: 109.8 kB / 0.668 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.1549, allocations: 33.83 kB / 0.6681 GB, free: 1.969 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.991e-05/0.155, allocations: 88.06 kB / 0.6681 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.155, allocations: 7.953 kB / 0.6681 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.123e-05/0.155, allocations: 13.72 kB / 0.6682 GB, free: 1.852 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1552, allocations: 314.8 kB / 0.6685 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.698e-05/0.1552, allocations: 15.98 kB / 0.6685 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.275e-05/0.1553, allocations: 4 kB / 0.6685 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.536e-05/0.1554, allocations: 32.84 kB / 0.6685 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1554, allocations: 0 / 0.6685 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001271/0.1555, allocations: 65.62 kB / 0.6686 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1555, allocations: 9.562 kB / 0.6686 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1555, allocations: 0 / 0.6686 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.1555, allocations: 0 / 0.6686 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.052e-05/0.1556, allocations: 4 kB / 0.6686 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.1556, allocations: 0 / 0.6686 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.657e-05/0.1557, allocations: 8.031 kB / 0.6686 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.818e-06/0.1557, allocations: 3.984 kB / 0.6686 GB, free: 1.387 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 7.442e-05/0.1558, allocations: 109.8 kB / 0.6687 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.687e-05/0.1558, allocations: 4 kB / 0.6687 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.156, allocations: 65.14 kB / 0.6688 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.156, allocations: 0 / 0.6688 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.156, allocations: 0 / 0.6688 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.156, allocations: 0 / 0.6688 GB, free: 1.195 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.1562, allocations: 169.6 kB / 0.6689 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1562, allocations: 0 / 0.6689 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.314e-05/0.1562, allocations: 4 kB / 0.6689 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1562, allocations: 0 / 0.6689 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.1562, allocations: 3.938 kB / 0.6689 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.1563, allocations: 0 / 0.6689 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1563, allocations: 4 kB / 0.6689 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001709/0.1564, allocations: 163.4 kB / 0.6691 GB, free: 0.793 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.1565, allocations: 81.05 kB / 0.6692 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.1565, allocations: 0 / 0.6692 GB, free: 0.6953 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.11e-05/0.1566, allocations: 4 kB / 0.6692 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.1566, allocations: 3.984 kB / 0.6692 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-06/0.1566, allocations: 0 / 0.6692 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.193e-05/0.1567, allocations: 87.28 kB / 0.6693 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1567, allocations: 0 / 0.6693 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002555/0.1569, allocations: 15.98 kB / 0.6693 GB, free: 0.5859 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.000589/0.1575, allocations: 0.7122 MB / 0.67 GB, free: 15.85 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001366/0.1577, allocations: 23.92 kB / 0.67 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1577, allocations: 3.938 kB / 0.67 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 4.662e-05/0.1577, allocations: 16.08 kB / 0.67 GB, free: 15.81 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002177/0.158, allocations: 7.938 kB / 0.67 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004453/0.1584, allocations: 160.1 kB / 0.6702 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002681/0.1587, allocations: 0.6768 MB / 0.6708 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.835e-05/0.1587, allocations: 7.984 kB / 0.6708 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.932e-05/0.1588, allocations: 11.44 kB / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of SimCode: time 2.6e-07/0.1588, allocations: 3.938 kB / 0.6709 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01824/0.177, allocations: 1.612 MB / 0.6724 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.676/7.853, allocations: 0 / 0.6724 GB, free: 13.33 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothLimit.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_SmoothLimit.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothLimit.pipe 2>&1)