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.00109/0.00109, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.001054/0.001054, allocations: 191.3 kB / 16.25 MB, free: 6.145 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.221/1.221, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001966/0.001966, allocations: 298.8 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9178/0.9178, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 108.1 kB / 0.5948 GB, free: 28.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1598/0.1614, allocations: 86.97 MB / 0.6797 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001756/0.1632, allocations: 0.6302 MB / 0.6804 GB, free: 340 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.1645, allocations: 1.249 MB / 0.6816 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.288e-05/0.1645, allocations: 3.938 kB / 0.6816 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.306e-05/0.1646, allocations: 1.531 kB / 0.6816 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.508e-06/0.1646, allocations: 0 / 0.6816 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003227/0.1649, allocations: 55.89 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.634e-05/0.165, allocations: 7.125 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.075e-05/0.165, allocations: 3.984 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.17e-05/0.165, allocations: 0 / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.117e-05/0.165, allocations: 3.938 kB / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.482e-06/0.1651, allocations: 0 / 0.6817 GB, free: 15 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.1653, allocations: 95.89 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.045e-06/0.1653, allocations: 0 / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.432e-05/0.1653, allocations: 4 kB / 0.6817 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.1654, allocations: 52.72 kB / 0.6818 GB, free: 14.85 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1654, allocations: 3.938 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1654, allocations: 0.875 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1655, allocations: 0 / 0.6818 GB, free: 14.84 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.0002722/0.1657, allocations: 324.3 kB / 0.6821 GB, free: 14.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1658, allocations: 12.56 kB / 0.6821 GB, free: 14.47 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.309e-05/0.1658, allocations: 39.59 kB / 0.6822 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.814e-05/0.1658, allocations: 0.9375 kB / 0.6822 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.274e-05/0.1659, allocations: 164.7 kB / 0.6823 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.296e-06/0.1659, allocations: 1.531 kB / 0.6823 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.195e-06/0.1659, allocations: 384 / 0.6823 GB, free: 14.22 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.884e-05/0.166, allocations: 37.83 kB / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.1661, allocations: 0 / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.951e-06/0.1661, allocations: 0 / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.046e-06/0.1661, allocations: 0 / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.644e-05/0.1661, allocations: 0 / 0.6824 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001094/0.1662, allocations: 153.7 kB / 0.6825 GB, free: 13.98 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.116e-05/0.1663, allocations: 22.5 kB / 0.6825 GB, free: 13.95 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.515e-05/0.1663, allocations: 12.89 kB / 0.6825 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005108/0.1668, allocations: 0.5661 MB / 0.6831 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.1668, allocations: 34.5 kB / 0.6831 GB, free: 13.2 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.1668, allocations: 0 / 0.6831 GB, free: 13.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001087/0.1669, allocations: 33.64 kB / 0.6832 GB, free: 13.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.167, allocations: 55.41 kB / 0.6832 GB, free: 13.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.357e-05/0.167, allocations: 93.98 kB / 0.6833 GB, free: 12.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.167, allocations: 29.7 kB / 0.6833 GB, free: 12.95 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.27e-05/0.1671, allocations: 80.14 kB / 0.6834 GB, free: 12.87 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.1671, allocations: 3.938 kB / 0.6834 GB, free: 12.87 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.1671, allocations: 13.72 kB / 0.6834 GB, free: 12.85 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.615e-05/0.1672, allocations: 314.8 kB / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.436e-06/0.1672, allocations: 0 / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.719e-06/0.1672, allocations: 0 / 0.6837 GB, free: 12.53 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.354e-05/0.1673, allocations: 12.92 kB / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1673, allocations: 0 / 0.6837 GB, free: 12.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.689e-05/0.1673, allocations: 37.64 kB / 0.6838 GB, free: 12.47 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.1673, allocations: 11.94 kB / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-06/0.1674, allocations: 0 / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.478e-06/0.1674, allocations: 0 / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.598e-05/0.1674, allocations: 0 / 0.6838 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.1674, allocations: 7.984 kB / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.137e-05/0.1674, allocations: 3.906 kB / 0.6838 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/0.1674, allocations: 4.031 kB / 0.6838 GB, free: 12.45 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 (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 5.385e-05/0.1675, allocations: 107.2 kB / 0.6839 GB, free: 12.33 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.364e-06/0.1675, allocations: 7.875 kB / 0.6839 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.428e-05/0.1676, allocations: 40.83 kB / 0.6839 GB, free: 12.28 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1676, allocations: 3.984 kB / 0.6839 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1676, allocations: 0 / 0.6839 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1676, allocations: 0 / 0.6839 GB, free: 12.27 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.411e-05/0.1677, allocations: 149.7 kB / 0.6841 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1677, allocations: 0 / 0.6841 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.582e-05/0.1677, allocations: 7.938 kB / 0.6841 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1677, allocations: 3.938 kB / 0.6841 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.1678, allocations: 0 / 0.6841 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.784e-06/0.1678, allocations: 4 kB / 0.6841 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1678, allocations: 3.938 kB / 0.6841 GB, free: 12.06 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.822e-05/0.1678, allocations: 61.12 kB / 0.6842 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.841e-05/0.1679, allocations: 85.08 kB / 0.6842 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.056e-06/0.1679, allocations: 0 / 0.6842 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.697e-06/0.1679, allocations: 0 / 0.6842 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.1679, allocations: 4 kB / 0.6843 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-06/0.1679, allocations: 0 / 0.6843 GB, free: 11.88 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.619e-05/0.168, allocations: 75.28 kB / 0.6843 GB, free: 11.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.168, allocations: 0 / 0.6843 GB, free: 11.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001813/0.1681, allocations: 11.98 kB / 0.6843 GB, free: 11.79 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 (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.0003485/0.1685, allocations: 0.6124 MB / 0.6849 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.85e-05/0.1686, allocations: 4 kB / 0.6849 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.1686, allocations: 0 / 0.6849 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 6.072e-06/0.1686, allocations: 0 / 0.6849 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.1687, allocations: 9.719 kB / 0.6849 GB, free: 11.13 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002404/0.169, allocations: 110.8 kB / 0.6851 GB, free: 10.98 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.1692, allocations: 0.6729 MB / 0.6857 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2e-05/0.1692, allocations: 0 / 0.6857 GB, free: 10.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.623e-05/0.1693, allocations: 7.438 kB / 0.6857 GB, free: 10.28 MB / 494.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1693, allocations: 0 / 0.6857 GB, free: 10.28 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01015/0.1794, allocations: 0.9495 MB / 0.6866 GB, free: 9.496 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002203/0.1797, allocations: 218.4 kB / 0.6869 GB, free: 9.246 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.664/1.844, allocations: 0 / 0.6869 GB, free: 9.246 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_SpliceFunction.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)