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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001408/0.001408, allocations: 105 kB / 15.98 MB, free: 6.77 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.001384/0.001385, allocations: 194.2 kB / 16.91 MB, free: 6.551 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.317/1.317, allocations: 222.9 MB / 240.6 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002331/0.002331, allocations: 271 kB / 291 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9904/0.9904, allocations: 178.6 MB / 0.5076 GB, free: 4.695 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002576/0.002576, allocations: 97.62 kB / 0.6066 GB, free: 25.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1513, allocations: 89.15 MB / 0.6936 GB, free: 4.66 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001724/0.1531, allocations: 0.6503 MB / 0.6943 GB, free: 4.012 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.1546, allocations: 1.256 MB / 0.6955 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.2e-05/0.1546, allocations: 0.6562 kB / 0.6955 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.268e-05/0.1547, allocations: 0 / 0.6955 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.128e-06/0.1547, allocations: 2.25 kB / 0.6955 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003269/0.155, allocations: 51.89 kB / 0.6956 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.441e-05/0.1551, allocations: 0 / 0.6956 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.253e-05/0.1551, allocations: 4 kB / 0.6956 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.282e-05/0.1551, allocations: 0 / 0.6956 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.116e-05/0.1552, allocations: 5.906 kB / 0.6956 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.033e-06/0.1552, allocations: 0 / 0.6956 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002344/0.1554, allocations: 107.8 kB / 0.6957 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.1554, allocations: 0 / 0.6957 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.202e-05/0.1554, allocations: 0 / 0.6957 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.399e-05/0.1555, allocations: 40.45 kB / 0.6957 GB, free: 2.539 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.1555, allocations: 1.719 kB / 0.6957 GB, free: 2.539 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1555, allocations: 0 / 0.6957 GB, free: 2.539 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1556, allocations: 0 / 0.6957 GB, free: 2.539 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.0003279/0.1559, allocations: 323.6 kB / 0.696 GB, free: 2.176 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.202e-05/0.1559, allocations: 12.03 kB / 0.696 GB, free: 2.164 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.446e-05/0.156, allocations: 4.938 kB / 0.696 GB, free: 2.16 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.854e-05/0.1561, allocations: 160.4 kB / 0.6962 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.808e-06/0.1561, allocations: 384 / 0.6962 GB, free: 1.965 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.1561, allocations: 4.375 kB / 0.6962 GB, free: 1.961 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.602e-05/0.1562, allocations: 30.02 kB / 0.6962 GB, free: 1.926 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1562, allocations: 3.984 kB / 0.6962 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.692e-06/0.1562, allocations: 7.875 kB / 0.6962 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-06/0.1562, allocations: 0 / 0.6962 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.407e-05/0.1563, allocations: 8 kB / 0.6962 GB, free: 1.906 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.1564, allocations: 141.7 kB / 0.6964 GB, free: 1.719 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.915e-05/0.1565, allocations: 22.61 kB / 0.6964 GB, free: 1.688 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.329e-05/0.1565, allocations: 4.859 kB / 0.6964 GB, free: 1.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005683/0.157, allocations: 0.5584 MB / 0.6969 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.1571, allocations: 38.5 kB / 0.697 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1571, allocations: 0 / 0.697 GB, free: 0.9453 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001173/0.1572, allocations: 41.64 kB / 0.697 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.1572, allocations: 59.33 kB / 0.6971 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.924e-05/0.1573, allocations: 89.86 kB / 0.6972 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1573, allocations: 25.7 kB / 0.6972 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.967e-05/0.1574, allocations: 80.14 kB / 0.6973 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.1574, allocations: 4.031 kB / 0.6973 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.664e-05/0.1574, allocations: 17.72 kB / 0.6973 GB, free: 0.5898 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1576, allocations: 314.8 kB / 0.6976 GB, free: 280 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.464e-06/0.1576, allocations: 0 / 0.6976 GB, free: 280 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.736e-06/0.1576, allocations: 4 kB / 0.6976 GB, free: 276 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.529e-05/0.1576, allocations: 8.797 kB / 0.6976 GB, free: 264 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1576, allocations: 0 / 0.6976 GB, free: 264 kB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.363e-05/0.1577, allocations: 37.69 kB / 0.6976 GB, free: 220 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.1577, allocations: 12.03 kB / 0.6976 GB, free: 208 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1577, allocations: 0 / 0.6976 GB, free: 208 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.946e-06/0.1577, allocations: 0 / 0.6976 GB, free: 208 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.66e-05/0.1578, allocations: 4 kB / 0.6976 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.1578, allocations: 0 / 0.6976 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.048e-05/0.1578, allocations: 288 / 0.6976 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.1578, allocations: 0 / 0.6976 GB, free: 204 kB / 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 6.776e-05/0.1579, allocations: 109.8 kB / 0.6978 GB, free: 84 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.116e-05/0.1579, allocations: 7.938 kB / 0.6978 GB, free: 76 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.951e-05/0.158, allocations: 48.69 kB / 0.6978 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.158, allocations: 0 / 0.6978 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.158, allocations: 4 kB / 0.6978 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.158, allocations: 0 / 0.6978 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.1581, allocations: 145.7 kB / 0.6979 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1581, allocations: 3.984 kB / 0.698 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.213e-05/0.1581, allocations: 0 / 0.698 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.1581, allocations: 3.938 kB / 0.698 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-06/0.1581, allocations: 0 / 0.698 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1582, allocations: 4.031 kB / 0.698 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1582, allocations: 4 kB / 0.698 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.868e-05/0.1582, allocations: 61.06 kB / 0.698 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.998e-05/0.1583, allocations: 85.03 kB / 0.6981 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.1583, allocations: 7.938 kB / 0.6981 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.052e-05/0.1583, allocations: 0 / 0.6981 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-06/0.1583, allocations: 3.938 kB / 0.6981 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-06/0.1583, allocations: 4.031 kB / 0.6981 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.978e-05/0.1584, allocations: 79.28 kB / 0.6982 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1584, allocations: 0 / 0.6982 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000184/0.1586, allocations: 8 kB / 0.6982 GB, free: 15.53 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.0001517/0.1587, allocations: 115.2 kB / 0.6983 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 5.665e-05/0.1588, allocations: 4 kB / 0.6983 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1588, allocations: 0 / 0.6983 GB, free: 15.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.157e-05/0.1588, allocations: 8.062 kB / 0.6983 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001191/0.1589, allocations: 0 / 0.6983 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001742/0.1591, allocations: 106.7 kB / 0.6984 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.1594, allocations: 0.6729 MB / 0.6991 GB, free: 14.56 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.471e-05/0.1594, allocations: 7.438 kB / 0.6991 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of SimCode: time 1.9e-07/0.1594, allocations: 0 / 0.6991 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of Templates: time 0.001937/0.1614, allocations: 437.1 kB / 0.6995 GB, free: 14.12 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction.pipe 2>&1)