Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Functions.Examples.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,fileNamePrefix="BuildingSystems_BuildingSystems_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.001574/0.001582, 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.001554/0.001554, allocations: 193.4 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.346/1.346, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002438/0.002439, allocations: 287 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.026/1.026, allocations: 178.6 MB / 0.5073 GB, free: 4.559 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002661/0.002661, allocations: 107.5 kB / 0.6066 GB, free: 24.53 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1509/0.1536, allocations: 89.14 MB / 0.6936 GB, free: 4.188 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001714/0.1554, allocations: 0.582 MB / 0.6942 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.1569, allocations: 1.256 MB / 0.6954 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.549e-05/0.1569, allocations: 0 / 0.6954 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.348e-05/0.157, allocations: 0 / 0.6954 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.157, allocations: 1 kB / 0.6954 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003249/0.1573, allocations: 67.75 kB / 0.6955 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.763e-05/0.1573, allocations: 3.281 kB / 0.6955 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.128e-05/0.1574, allocations: 0 / 0.6955 GB, free: 2.273 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.816e-05/0.1574, allocations: 7.984 kB / 0.6955 GB, free: 2.266 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.412e-05/0.1575, allocations: 3.938 kB / 0.6955 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.945e-06/0.1575, allocations: 0 / 0.6955 GB, free: 2.262 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002392/0.1577, allocations: 107.8 kB / 0.6956 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.568e-06/0.1577, allocations: 0 / 0.6956 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.375e-05/0.1577, allocations: 0 / 0.6956 GB, free: 2.156 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.1579, allocations: 47.94 kB / 0.6956 GB, free: 2.109 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1579, allocations: 0.9375 kB / 0.6956 GB, free: 2.109 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1579, allocations: 0 / 0.6956 GB, free: 2.109 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.1579, allocations: 0.6562 kB / 0.6956 GB, free: 2.109 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.0003509/0.1583, allocations: 328.1 kB / 0.6959 GB, free: 1.742 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.1583, allocations: 9.219 kB / 0.696 GB, free: 1.734 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.216e-05/0.1584, allocations: 34.75 kB / 0.696 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.963e-05/0.1584, allocations: 0.9375 kB / 0.696 GB, free: 1.691 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/0.1585, allocations: 168.4 kB / 0.6962 GB, free: 1.488 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.1585, allocations: 4.375 kB / 0.6962 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.39e-06/0.1585, allocations: 384 / 0.6962 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.998e-05/0.1586, allocations: 29.83 kB / 0.6962 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1586, allocations: 0 / 0.6962 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.603e-06/0.1586, allocations: 0 / 0.6962 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1587, allocations: 0 / 0.6962 GB, free: 1.449 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.68e-05/0.1587, allocations: 7.938 kB / 0.6962 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.1588, allocations: 149.7 kB / 0.6963 GB, free: 1.246 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.861e-05/0.1589, allocations: 22.61 kB / 0.6964 GB, free: 1.215 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.75e-05/0.1589, allocations: 8.797 kB / 0.6964 GB, free: 1.203 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006158/0.1595, allocations: 0.5583 MB / 0.6969 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.1596, allocations: 46.48 kB / 0.697 GB, free: 472 kB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1596, allocations: 0 / 0.697 GB, free: 472 kB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001308/0.1597, allocations: 37.64 kB / 0.697 GB, free: 428 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.1598, allocations: 51.41 kB / 0.697 GB, free: 364 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.874e-05/0.1598, allocations: 89.86 kB / 0.6971 GB, free: 264 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.1598, allocations: 25.7 kB / 0.6971 GB, free: 232 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.1599, allocations: 80.14 kB / 0.6972 GB, free: 148 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.535e-05/0.1599, allocations: 4.188 kB / 0.6972 GB, free: 144 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.676e-05/0.1599, allocations: 13.72 kB / 0.6972 GB, free: 124 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1601, allocations: 323 kB / 0.6975 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-06/0.1601, allocations: 0 / 0.6975 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.644e-06/0.1601, allocations: 4 kB / 0.6976 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.556e-05/0.1602, allocations: 4.859 kB / 0.6976 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.1602, allocations: 3.938 kB / 0.6976 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.276e-05/0.1602, allocations: 33.7 kB / 0.6976 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.1603, allocations: 7.938 kB / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.1603, allocations: 0 / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.1603, allocations: 96 / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.21e-05/0.1603, allocations: 8 kB / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1603, allocations: 0 / 0.6976 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.536e-05/0.1604, allocations: 7.922 kB / 0.6976 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.1604, allocations: 0 / 0.6976 GB, free: 15.72 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.284e-05/0.1605, allocations: 113.8 kB / 0.6977 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-06/0.1605, allocations: 3.938 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.693e-05/0.1606, allocations: 48.73 kB / 0.6978 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.1606, allocations: 4 kB / 0.6978 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1606, allocations: 0 / 0.6978 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1606, allocations: 3.984 kB / 0.6978 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.1607, allocations: 153.7 kB / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.1607, allocations: 0 / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.284e-05/0.1607, allocations: 0 / 0.6979 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1607, allocations: 3.938 kB / 0.6979 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.1608, allocations: 4 kB / 0.6979 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1608, allocations: 0 / 0.6979 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.1608, allocations: 0 / 0.6979 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.859e-05/0.1609, allocations: 61.09 kB / 0.698 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.087e-05/0.1609, allocations: 81.05 kB / 0.6981 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.1609, allocations: 4 kB / 0.6981 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.328e-06/0.1609, allocations: 3.938 kB / 0.6981 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.1e-05/0.161, allocations: 4 kB / 0.6981 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-06/0.161, allocations: 3.938 kB / 0.6981 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.681e-05/0.161, allocations: 75.28 kB / 0.6982 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.161, allocations: 4.031 kB / 0.6982 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002023/0.1612, allocations: 11.98 kB / 0.6982 GB, free: 15.05 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.0004155/0.1616, allocations: 0.6007 MB / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 6.425e-05/0.1617, allocations: 7.938 kB / 0.6988 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1617, allocations: 4.094 kB / 0.6988 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.325e-06/0.1617, allocations: 4 kB / 0.6988 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.1619, allocations: 0 / 0.6988 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002701/0.1621, allocations: 109.3 kB / 0.6989 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.1624, allocations: 0.669 MB / 0.6995 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.081e-05/0.1625, allocations: 4 kB / 0.6995 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.482e-05/0.1625, allocations: 11.5 kB / 0.6995 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1625, allocations: 0 / 0.6995 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02109/0.1836, allocations: 1.02 MB / 0.7005 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.421/7.604, allocations: 15.42 kB / 0.7006 GB, free: 12.62 MB / 0.4981 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)