Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.Splice,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Splice,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice",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.001214/0.001214, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 196 kB / 16.53 MB, free: 6.391 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.262/1.262, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001983/0.001983, allocations: 287 kB / 290.7 MB, free: 1.969 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9157/0.9157, allocations: 169.3 MB / 0.4982 GB, free: 13.91 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 97.36 kB / 0.5953 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1527, allocations: 86.98 MB / 0.6803 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Splice): time 0.002655/0.1554, allocations: 1.486 MB / 0.6817 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009825/0.1564, allocations: 0.6507 MB / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.497e-05/0.1564, allocations: 0 / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 3.043e-05/0.1565, allocations: 3.938 kB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.35e-05/0.1565, allocations: 10.83 kB / 0.6824 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000342/0.1569, allocations: 83.67 kB / 0.6825 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.115e-05/0.157, allocations: 31.92 kB / 0.6825 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.755e-05/0.1571, allocations: 16.7 kB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.358e-05/0.1571, allocations: 15.94 kB / 0.6825 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.456e-05/0.1572, allocations: 25.56 kB / 0.6826 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.1572, allocations: 4 kB / 0.6826 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001908/0.1574, allocations: 99.91 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.1574, allocations: 15.97 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.652e-05/0.1575, allocations: 15.88 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001549/0.1576, allocations: 80.7 kB / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.1576, allocations: 0 / 0.6828 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1576, allocations: 4.625 kB / 0.6828 GB, free: 14.01 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1577, allocations: 0 / 0.6828 GB, free: 14.01 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004081/0.1581, allocations: 361 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.679e-05/0.1581, allocations: 8.031 kB / 0.6831 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.863e-05/0.1582, allocations: 43.69 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.1582, allocations: 4.844 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001037/0.1583, allocations: 168.3 kB / 0.6833 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.839e-06/0.1583, allocations: 4.375 kB / 0.6833 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-06/0.1583, allocations: 4.375 kB / 0.6833 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.1585, allocations: 61.78 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1585, allocations: 3.938 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.1585, allocations: 0 / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.1585, allocations: 4 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.86e-05/0.1586, allocations: 23.98 kB / 0.6834 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003278/0.1589, allocations: 296.6 kB / 0.6837 GB, free: 12.9 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.17e-05/0.159, allocations: 26.64 kB / 0.6837 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.592e-05/0.1591, allocations: 16.84 kB / 0.6837 GB, free: 12.85 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004882/0.1596, allocations: 0.5583 MB / 0.6843 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.1596, allocations: 38.5 kB / 0.6843 GB, free: 12.11 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.1596, allocations: 0 / 0.6843 GB, free: 12.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002573/0.1599, allocations: 65.67 kB / 0.6844 GB, free: 12.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.1599, allocations: 51.41 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.16, allocations: 121.8 kB / 0.6846 GB, free: 11.85 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.264e-05/0.1601, allocations: 25.7 kB / 0.6846 GB, free: 11.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.536e-05/0.1601, allocations: 88.14 kB / 0.6847 GB, free: 11.73 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.1601, allocations: 8.031 kB / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.191e-05/0.1602, allocations: 17.72 kB / 0.6847 GB, free: 11.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1603, allocations: 322.7 kB / 0.685 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.255e-05/0.1603, allocations: 8 kB / 0.685 GB, free: 11.37 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.541e-05/0.1604, allocations: 12.5 kB / 0.685 GB, free: 11.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.834e-05/0.1605, allocations: 28.78 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1605, allocations: 4.062 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001196/0.1606, allocations: 57.59 kB / 0.6851 GB, free: 11.26 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1606, allocations: 8 kB / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1606, allocations: 0 / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.1607, allocations: 0 / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.002e-05/0.1607, allocations: 7.984 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1607, allocations: 0 / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.279e-05/0.1608, allocations: 4 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.1608, allocations: 3.938 kB / 0.6851 GB, free: 11.23 MB / 494.1 MB 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 8.005e-05/0.1609, allocations: 110.5 kB / 0.6852 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.824e-05/0.1609, allocations: 7.906 kB / 0.6852 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.1611, allocations: 65.14 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1611, allocations: 3.938 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1611, allocations: 4 kB / 0.6853 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1611, allocations: 3.984 kB / 0.6853 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.1613, allocations: 165.6 kB / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1613, allocations: 4 kB / 0.6855 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-05/0.1613, allocations: 12.03 kB / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.1614, allocations: 0 / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.1614, allocations: 0 / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.1614, allocations: 0 / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1614, allocations: 0 / 0.6855 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002267/0.1616, allocations: 159.4 kB / 0.6856 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.138e-05/0.1617, allocations: 81.02 kB / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.308e-05/0.1617, allocations: 4.031 kB / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.053e-05/0.1617, allocations: 4 kB / 0.6857 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.155e-05/0.1618, allocations: 3.984 kB / 0.6857 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.986e-06/0.1618, allocations: 0 / 0.6857 GB, free: 10.52 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.582e-05/0.1619, allocations: 103.6 kB / 0.6858 GB, free: 10.42 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1619, allocations: 0 / 0.6858 GB, free: 10.42 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1621, allocations: 11.94 kB / 0.6858 GB, free: 10.41 MB / 494.1 MB 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.0004981/0.1626, allocations: 0.6852 MB / 0.6865 GB, free: 9.695 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.1628, allocations: 31.92 kB / 0.6865 GB, free: 9.664 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1628, allocations: 0 / 0.6865 GB, free: 9.664 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.722e-05/0.1628, allocations: 11.98 kB / 0.6865 GB, free: 9.652 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.163, allocations: 12.09 kB / 0.6866 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.1644, allocations: 1.315 MB / 0.6878 GB, free: 8.25 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002491/0.1646, allocations: 0.6807 MB / 0.6885 GB, free: 7.543 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.529e-05/0.1647, allocations: 4.141 kB / 0.6885 GB, free: 7.539 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.257e-05/0.1647, allocations: 27.36 kB / 0.6885 GB, free: 7.512 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1647, allocations: 0 / 0.6885 GB, free: 7.512 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01701/0.1817, allocations: 1.475 MB / 0.69 GB, free: 6.102 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.966/7.148, allocations: 11.08 kB / 0.69 GB, free: 6.094 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe 2>&1)