Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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.Functions.Examples.SpliceFunction,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="IDEAS_dev_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.008016/0.008016, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001297/0.001297, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8381/0.8381, allocations: 135.1 MB / 425.7 MB, free: 4.082 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 61.12 kB / 0.5852 GB, free: 21.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1563/0.1577, allocations: 80.93 MB / 0.6642 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001861/0.1596, allocations: 0.568 MB / 0.6648 GB, free: 5.695 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001739/0.1614, allocations: 1.243 MB / 0.666 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.551e-05/0.1614, allocations: 0 / 0.666 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.64e-05/0.1614, allocations: 0 / 0.666 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.763e-06/0.1615, allocations: 8 kB / 0.666 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.1618, allocations: 63.75 kB / 0.666 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.152e-05/0.1619, allocations: 4 kB / 0.666 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.76e-05/0.1619, allocations: 0 / 0.666 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.547e-05/0.162, allocations: 0 / 0.666 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.45e-05/0.162, allocations: 3.938 kB / 0.6661 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.1621, allocations: 4 kB / 0.6661 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002336/0.1623, allocations: 91.89 kB / 0.6661 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.036e-05/0.1623, allocations: 0 / 0.6661 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.935e-05/0.1623, allocations: 7.938 kB / 0.6661 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001452/0.1625, allocations: 52.16 kB / 0.6662 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1625, allocations: 0 / 0.6662 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.803e-06/0.1625, allocations: 0 / 0.6662 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.1625, allocations: 0 / 0.6662 GB, free: 4.207 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.0003409/0.1629, allocations: 327.5 kB / 0.6665 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.1629, allocations: 9.109 kB / 0.6665 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.028e-05/0.163, allocations: 30.75 kB / 0.6665 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.163, allocations: 0.9375 kB / 0.6666 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.1631, allocations: 160.4 kB / 0.6667 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.1631, allocations: 4.375 kB / 0.6667 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.1632, allocations: 8.312 kB / 0.6667 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001311/0.1633, allocations: 33.81 kB / 0.6667 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1633, allocations: 0 / 0.6667 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1633, allocations: 3.984 kB / 0.6668 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1633, allocations: 0 / 0.6668 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.952e-05/0.1634, allocations: 4 kB / 0.6668 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002101/0.1636, allocations: 145.7 kB / 0.6669 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.309e-05/0.1637, allocations: 18.58 kB / 0.6669 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.499e-05/0.1637, allocations: 20.88 kB / 0.6669 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007319/0.1644, allocations: 0.5622 MB / 0.6675 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.1645, allocations: 34.5 kB / 0.6675 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.754e-06/0.1645, allocations: 0 / 0.6675 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001925/0.1647, allocations: 33.7 kB / 0.6675 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.1648, allocations: 59.39 kB / 0.6676 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.268e-05/0.1648, allocations: 89.86 kB / 0.6677 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.1649, allocations: 25.7 kB / 0.6677 GB, free: 2.324 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.1649, allocations: 80.14 kB / 0.6678 GB, free: 2.242 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.744e-05/0.165, allocations: 7.875 kB / 0.6678 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.537e-05/0.165, allocations: 13.72 kB / 0.6678 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1652, allocations: 314.8 kB / 0.6681 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.575e-05/0.1652, allocations: 8.062 kB / 0.6681 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.749e-06/0.1652, allocations: 0 / 0.6681 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.96e-05/0.1652, allocations: 8.859 kB / 0.6681 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1653, allocations: 0 / 0.6681 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.842e-05/0.1653, allocations: 37.64 kB / 0.6682 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.1654, allocations: 11.94 kB / 0.6682 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1654, allocations: 0 / 0.6682 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.1654, allocations: 3.938 kB / 0.6682 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.973e-05/0.1655, allocations: 0 / 0.6682 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.1655, allocations: 4.094 kB / 0.6682 GB, free: 1.816 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.727e-05/0.1655, allocations: 8 kB / 0.6682 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.1655, allocations: 0 / 0.6682 GB, free: 1.809 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 0.0001151/0.1657, allocations: 109.8 kB / 0.6683 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/0.1657, allocations: 3.938 kB / 0.6683 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.1658, allocations: 40.81 kB / 0.6683 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1659, allocations: 4.031 kB / 0.6683 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1659, allocations: 0 / 0.6683 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.1659, allocations: 0 / 0.6683 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001349/0.166, allocations: 145.7 kB / 0.6685 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.166, allocations: 3.984 kB / 0.6685 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.353e-05/0.1661, allocations: 4 kB / 0.6685 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1661, allocations: 3.938 kB / 0.6685 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.1661, allocations: 0 / 0.6685 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1661, allocations: 0 / 0.6685 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1661, allocations: 0 / 0.6685 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.965e-05/0.1662, allocations: 61.08 kB / 0.6685 GB, free: 1.352 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.59e-05/0.1663, allocations: 89.03 kB / 0.6686 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.1663, allocations: 0 / 0.6686 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.128e-05/0.1663, allocations: 0 / 0.6686 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.112e-05/0.1664, allocations: 4 kB / 0.6686 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-06/0.1664, allocations: 4 kB / 0.6686 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.576e-05/0.1664, allocations: 75.28 kB / 0.6687 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.635e-06/0.1664, allocations: 0 / 0.6687 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002502/0.1667, allocations: 11.97 kB / 0.6687 GB, free: 1.152 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.0005251/0.1672, allocations: 0.602 MB / 0.6693 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 8.458e-05/0.1673, allocations: 4 kB / 0.6693 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1673, allocations: 0 / 0.6693 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.977e-06/0.1673, allocations: 8.094 kB / 0.6693 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.1675, allocations: 3.984 kB / 0.6693 GB, free: 0.5039 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003283/0.1678, allocations: 114.5 kB / 0.6694 GB, free: 360 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002147/0.1681, allocations: 0.669 MB / 0.6701 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.286e-05/0.1681, allocations: 4 kB / 0.6701 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.739e-05/0.1681, allocations: 7.438 kB / 0.6701 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of SimCode: time 3.71e-07/0.1681, allocations: 0 / 0.6701 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.1849, allocations: 1.034 MB / 0.6711 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.701, allocations: 11.09 kB / 0.6711 GB, free: 14.7 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Utilities_Math_Functions_Examples_SpliceFunction.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)