Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.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.SpliceFunction,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction",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.009173/0.009174, allocations: 100.2 kB / 15.73 MB, free: 6.062 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.002127/0.002127, 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.492/1.492, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8238/0.8238, allocations: 132.2 MB / 422.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 64.52 kB / 0.5809 GB, free: 24.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.1634, allocations: 80.21 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001628/0.1651, allocations: 0.5822 MB / 0.6598 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001581/0.1667, allocations: 1.251 MB / 0.661 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.679e-05/0.1667, allocations: 0 / 0.661 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.116e-05/0.1667, allocations: 0 / 0.661 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.1667, allocations: 0 / 0.661 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003391/0.1671, allocations: 59.77 kB / 0.6611 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.452e-05/0.1671, allocations: 7.984 kB / 0.6611 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.49e-05/0.1672, allocations: 0 / 0.6611 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.265e-05/0.1672, allocations: 0 / 0.6611 GB, free: 8.816 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.678e-05/0.1672, allocations: 4 kB / 0.6611 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.234e-06/0.1672, allocations: 0 / 0.6611 GB, free: 8.812 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002325/0.1675, allocations: 99.89 kB / 0.6612 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 8.385e-06/0.1675, allocations: 0 / 0.6612 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.884e-05/0.1675, allocations: 3.938 kB / 0.6612 GB, free: 8.711 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.1676, allocations: 52.09 kB / 0.6612 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1676, allocations: 0 / 0.6612 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.312e-06/0.1677, allocations: 0 / 0.6612 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.438e-06/0.1677, allocations: 0 / 0.6612 GB, free: 8.66 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003371/0.168, allocations: 323.5 kB / 0.6616 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1681, allocations: 19.97 kB / 0.6616 GB, free: 8.277 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.909e-05/0.1681, allocations: 30.75 kB / 0.6616 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.931e-05/0.1681, allocations: 0.9375 kB / 0.6616 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.1682, allocations: 160.4 kB / 0.6618 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.099e-05/0.1682, allocations: 384 / 0.6618 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.787e-06/0.1683, allocations: 384 / 0.6618 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.961e-05/0.1684, allocations: 33.83 kB / 0.6618 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1684, allocations: 3.984 kB / 0.6618 GB, free: 8 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-06/0.1684, allocations: 0 / 0.6618 GB, free: 8 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.1684, allocations: 0 / 0.6618 GB, free: 8 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.285e-05/0.1684, allocations: 12 kB / 0.6618 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001459/0.1686, allocations: 141.7 kB / 0.6619 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.137e-05/0.1686, allocations: 18.52 kB / 0.662 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.24e-05/0.1686, allocations: 8.953 kB / 0.662 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005861/0.1692, allocations: 0.5622 MB / 0.6625 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.1693, allocations: 38.5 kB / 0.6625 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1693, allocations: 0 / 0.6625 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001291/0.1694, allocations: 33.64 kB / 0.6626 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.412e-05/0.1695, allocations: 51.41 kB / 0.6626 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.85e-05/0.1695, allocations: 93.86 kB / 0.6627 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.1695, allocations: 29.7 kB / 0.6627 GB, free: 6.785 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.963e-05/0.1696, allocations: 80.14 kB / 0.6628 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.1696, allocations: 12.02 kB / 0.6628 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.198e-05/0.1696, allocations: 13.7 kB / 0.6628 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.1698, allocations: 314.8 kB / 0.6631 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.426e-06/0.1698, allocations: 4 kB / 0.6632 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.179e-06/0.1698, allocations: 0 / 0.6632 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.809e-05/0.1698, allocations: 12.86 kB / 0.6632 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1698, allocations: 0 / 0.6632 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.283e-05/0.1699, allocations: 33.73 kB / 0.6632 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.1699, allocations: 15.94 kB / 0.6632 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.1699, allocations: 0 / 0.6632 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.17, allocations: 3.984 kB / 0.6632 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.526e-05/0.17, allocations: 0 / 0.6632 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.17, allocations: 0 / 0.6632 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.04e-05/0.17, allocations: 0 / 0.6632 GB, free: 6.277 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.17, allocations: 7.938 kB / 0.6632 GB, free: 6.27 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 (1): * Single equations (assignments): 1 * 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.777e-05/0.1701, allocations: 105.8 kB / 0.6633 GB, free: 6.156 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-06/0.1701, allocations: 3.938 kB / 0.6633 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.842e-05/0.1702, allocations: 44.81 kB / 0.6634 GB, free: 6.098 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.1702, allocations: 4 kB / 0.6634 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1702, allocations: 4 kB / 0.6634 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.1702, allocations: 0 / 0.6634 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00011/0.1704, allocations: 141.7 kB / 0.6635 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.1704, allocations: 0 / 0.6635 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.562e-05/0.1704, allocations: 7.938 kB / 0.6635 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.1704, allocations: 3.938 kB / 0.6635 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.969e-06/0.1704, allocations: 4.031 kB / 0.6635 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1704, allocations: 3.984 kB / 0.6635 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1704, allocations: 0 / 0.6635 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.962e-05/0.1705, allocations: 57.14 kB / 0.6636 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.055e-05/0.1706, allocations: 81.05 kB / 0.6637 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.268e-06/0.1706, allocations: 0 / 0.6637 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.957e-06/0.1706, allocations: 0 / 0.6637 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.773e-05/0.1706, allocations: 8.016 kB / 0.6637 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.1706, allocations: 0 / 0.6637 GB, free: 5.703 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.088e-05/0.1706, allocations: 79.28 kB / 0.6637 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1706, allocations: 0 / 0.6637 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001875/0.1708, allocations: 4 kB / 0.6638 GB, free: 5.621 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 (1): * Single equations (assignments): 1 * 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.0004426/0.1713, allocations: 0.6162 MB / 0.6644 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.949e-05/0.1714, allocations: 4 kB / 0.6644 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1714, allocations: 0 / 0.6644 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.496e-06/0.1714, allocations: 4 kB / 0.6644 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.1715, allocations: 5.562 kB / 0.6644 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002932/0.1718, allocations: 114.5 kB / 0.6645 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.1721, allocations: 0.669 MB / 0.6651 GB, free: 4.113 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.825e-05/0.1722, allocations: 4.125 kB / 0.6651 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.663e-05/0.1722, allocations: 7.438 kB / 0.6651 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1722, allocations: 0 / 0.6651 GB, free: 4.102 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0211/0.1933, allocations: 1.013 MB / 0.6661 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.773/7.966, allocations: 9.5 kB / 0.6661 GB, free: 3.184 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IDEAS_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)