Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="IBPSA_latest_IBPSA_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.001332/0.001332, allocations: 107.1 kB / 16.41 MB, free: 6.48 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.00124/0.00124, allocations: 191.9 kB / 17.34 MB, free: 5.75 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.5/1.5, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8382/0.8382, allocations: 126.7 MB / 417.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 69.23 kB / 0.5736 GB, free: 27 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1648, allocations: 78.87 MB / 0.6506 GB, free: 3.508 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001743/0.1665, allocations: 0.5572 MB / 0.6511 GB, free: 2.953 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001707/0.1683, allocations: 1.262 MB / 0.6524 GB, free: 1.676 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.588e-05/0.1683, allocations: 0 / 0.6524 GB, free: 1.676 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.534e-05/0.1683, allocations: 3.938 kB / 0.6524 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.009e-06/0.1684, allocations: 0 / 0.6524 GB, free: 1.672 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.1688, allocations: 67.75 kB / 0.6525 GB, free: 1.605 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.886e-05/0.1688, allocations: 4 kB / 0.6525 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.315e-05/0.1688, allocations: 4 kB / 0.6525 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.191e-05/0.1689, allocations: 0 / 0.6525 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.196e-05/0.1689, allocations: 7.984 kB / 0.6525 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.514e-06/0.1689, allocations: 0 / 0.6525 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.1692, allocations: 95.89 kB / 0.6526 GB, free: 1.496 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.1692, allocations: 4 kB / 0.6526 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.051e-05/0.1692, allocations: 7.938 kB / 0.6526 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.1694, allocations: 48.16 kB / 0.6526 GB, free: 1.438 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1694, allocations: 4 kB / 0.6526 GB, free: 1.434 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1694, allocations: 0 / 0.6526 GB, free: 1.434 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1694, allocations: 4 kB / 0.6526 GB, free: 1.43 MB / 494.1 MB 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.0003327/0.1697, allocations: 323.4 kB / 0.6529 GB, free: 1.066 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.1698, allocations: 12.03 kB / 0.6529 GB, free: 1.055 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.093e-05/0.1698, allocations: 30.75 kB / 0.653 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.894e-05/0.1698, allocations: 0.9375 kB / 0.653 GB, free: 1.016 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.1699, allocations: 164.4 kB / 0.6531 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.362e-06/0.17, allocations: 4.312 kB / 0.6531 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.17, allocations: 384 / 0.6531 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.982e-05/0.1701, allocations: 33.83 kB / 0.6532 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1701, allocations: 4 kB / 0.6532 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.472e-06/0.1701, allocations: 0 / 0.6532 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1701, allocations: 0 / 0.6532 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.146e-05/0.1701, allocations: 8 kB / 0.6532 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.1703, allocations: 141.7 kB / 0.6533 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.767e-05/0.1703, allocations: 22.5 kB / 0.6533 GB, free: 0.543 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.894e-05/0.1703, allocations: 8.953 kB / 0.6533 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000631/0.171, allocations: 0.5622 MB / 0.6539 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.171, allocations: 38.48 kB / 0.6539 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.171, allocations: 0 / 0.6539 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001379/0.1712, allocations: 33.7 kB / 0.654 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.1712, allocations: 51.41 kB / 0.654 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.974e-05/0.1713, allocations: 97.92 kB / 0.6541 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.38e-05/0.1713, allocations: 29.7 kB / 0.6541 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.799e-05/0.1713, allocations: 80.14 kB / 0.6542 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.1714, allocations: 3.953 kB / 0.6542 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.993e-05/0.1714, allocations: 13.72 kB / 0.6542 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000132/0.1715, allocations: 314.8 kB / 0.6545 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.28e-05/0.1716, allocations: 3.984 kB / 0.6545 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.671e-06/0.1716, allocations: 3.938 kB / 0.6545 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.364e-05/0.1716, allocations: 20.92 kB / 0.6546 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1716, allocations: 0 / 0.6546 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.897e-05/0.1717, allocations: 33.7 kB / 0.6546 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1717, allocations: 7.938 kB / 0.6546 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1717, allocations: 0 / 0.6546 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1717, allocations: 0 / 0.6546 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.248e-05/0.1718, allocations: 4 kB / 0.6546 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.1718, allocations: 0 / 0.6546 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.158e-05/0.1718, allocations: 3.938 kB / 0.6546 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.107e-06/0.1718, allocations: 7.969 kB / 0.6546 GB, free: 15.04 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.387e-05/0.1719, allocations: 109.9 kB / 0.6547 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.806e-06/0.1719, allocations: 3.938 kB / 0.6547 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.564e-05/0.172, allocations: 40.83 kB / 0.6548 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.172, allocations: 0 / 0.6548 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.172, allocations: 0 / 0.6548 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.172, allocations: 0 / 0.6548 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.1721, allocations: 149.7 kB / 0.6549 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1722, allocations: 8.031 kB / 0.6549 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.347e-05/0.1722, allocations: 0 / 0.6549 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1722, allocations: 3.938 kB / 0.6549 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.1722, allocations: 0 / 0.6549 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1722, allocations: 0 / 0.6549 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.1722, allocations: 0 / 0.6549 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.325e-05/0.1723, allocations: 65.06 kB / 0.655 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.869e-05/0.1723, allocations: 81.05 kB / 0.655 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.866e-06/0.1724, allocations: 4.031 kB / 0.6551 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.112e-05/0.1724, allocations: 4 kB / 0.6551 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.599e-05/0.1724, allocations: 0 / 0.6551 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.1724, allocations: 3.938 kB / 0.6551 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.257e-05/0.1724, allocations: 75.28 kB / 0.6551 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1724, allocations: 0 / 0.6551 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002104/0.1727, allocations: 11.92 kB / 0.6551 GB, free: 14.39 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.0004447/0.1731, allocations: 0.6124 MB / 0.6557 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.927e-05/0.1732, allocations: 4 kB / 0.6557 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1732, allocations: 0 / 0.6557 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.646e-06/0.1732, allocations: 4 kB / 0.6557 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.1734, allocations: 5.875 kB / 0.6558 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002925/0.1737, allocations: 102.9 kB / 0.6559 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.174, allocations: 0.6767 MB / 0.6565 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.071e-05/0.174, allocations: 4 kB / 0.6565 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.981e-05/0.174, allocations: 7.438 kB / 0.6565 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of SimCode: time 2.21e-07/0.174, allocations: 0 / 0.6565 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.1955, allocations: 1.023 MB / 0.6575 GB, free: 11.94 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.753/7.949, allocations: 11.09 kB / 0.6575 GB, free: 11.93 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_SpliceFunction.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)