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.001188/0.001188, allocations: 108 kB / 15.61 MB, free: 152 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.001239/0.001239, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.307/1.307, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002124/0.002124, allocations: 291.1 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9058/0.9058, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 99.47 kB / 0.5954 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1612, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001736/0.163, allocations: 0.5632 MB / 0.6809 GB, free: 32 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1645, allocations: 1.254 MB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.1645, allocations: 1.906 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.292e-05/0.1645, allocations: 0 / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.579e-06/0.1646, allocations: 4 kB / 0.6821 GB, free: 14.76 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.1649, allocations: 63.75 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.619e-05/0.1649, allocations: 4 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.688e-05/0.165, allocations: 3.984 kB / 0.6822 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.491e-05/0.165, allocations: 4 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.306e-05/0.165, allocations: 3.938 kB / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.805e-06/0.1651, allocations: 0 / 0.6822 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.1653, allocations: 107.8 kB / 0.6823 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.436e-06/0.1653, allocations: 0 / 0.6823 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.432e-05/0.1653, allocations: 0 / 0.6823 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000119/0.1655, allocations: 47.94 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1655, allocations: 3.938 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1655, allocations: 0 / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.1655, allocations: 4 kB / 0.6823 GB, free: 14.52 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.000265/0.1658, allocations: 327.6 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.1658, allocations: 8.031 kB / 0.6826 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.317e-05/0.1658, allocations: 30.75 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.247e-05/0.1659, allocations: 8.922 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.758e-05/0.166, allocations: 160.7 kB / 0.6828 GB, free: 13.9 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.678e-06/0.166, allocations: 8.359 kB / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-06/0.166, allocations: 384 / 0.6828 GB, free: 13.89 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.928e-05/0.1661, allocations: 33.83 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.1661, allocations: 0 / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.313e-06/0.1661, allocations: 3.938 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1661, allocations: 4 kB / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.895e-05/0.1661, allocations: 0 / 0.6829 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001194/0.1662, allocations: 149.6 kB / 0.683 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.357e-05/0.1663, allocations: 22.61 kB / 0.683 GB, free: 13.62 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.572e-05/0.1663, allocations: 4.859 kB / 0.683 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005185/0.1668, allocations: 0.5623 MB / 0.6836 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.276e-05/0.1669, allocations: 38.5 kB / 0.6836 GB, free: 12.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.163e-06/0.1669, allocations: 0 / 0.6836 GB, free: 12.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000121/0.167, allocations: 37.64 kB / 0.6837 GB, free: 12.83 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.167, allocations: 51.41 kB / 0.6837 GB, free: 12.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.391e-05/0.1671, allocations: 93.98 kB / 0.6838 GB, free: 12.67 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.07e-05/0.1671, allocations: 25.7 kB / 0.6838 GB, free: 12.64 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.061e-05/0.1671, allocations: 80.14 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/0.1671, allocations: 3.938 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.627e-05/0.1672, allocations: 17.7 kB / 0.6839 GB, free: 12.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.1673, allocations: 314.8 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.516e-06/0.1673, allocations: 0 / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.865e-06/0.1673, allocations: 4 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.471e-05/0.1673, allocations: 12.86 kB / 0.6842 GB, free: 12.19 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.1673, allocations: 4 kB / 0.6842 GB, free: 12.19 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.924e-05/0.1674, allocations: 29.7 kB / 0.6843 GB, free: 12.15 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1674, allocations: 7.938 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.1674, allocations: 0 / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.749e-06/0.1674, allocations: 0 / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.12e-05/0.1675, allocations: 7.984 kB / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1675, allocations: 0 / 0.6843 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.1675, allocations: 7.906 kB / 0.6843 GB, free: 12.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-06/0.1675, allocations: 0 / 0.6843 GB, free: 12.13 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.741e-05/0.1676, allocations: 119.2 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.244e-05/0.1676, allocations: 7.875 kB / 0.6844 GB, free: 12 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.448e-05/0.1677, allocations: 44.73 kB / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1677, allocations: 0 / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1677, allocations: 0 / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1677, allocations: 0 / 0.6845 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.135e-05/0.1678, allocations: 149.7 kB / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1678, allocations: 4.031 kB / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.432e-05/0.1678, allocations: 0 / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.1678, allocations: 3.938 kB / 0.6846 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.732e-06/0.1678, allocations: 7.938 kB / 0.6846 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1678, allocations: 0 / 0.6846 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1679, allocations: 3.984 kB / 0.6846 GB, free: 11.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6e-05/0.1679, allocations: 53.14 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.854e-05/0.168, allocations: 89.02 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.058e-05/0.168, allocations: 4 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.946e-06/0.168, allocations: 0 / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.083e-05/0.168, allocations: 3.984 kB / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.168, allocations: 0 / 0.6848 GB, free: 11.55 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.554e-05/0.168, allocations: 75.28 kB / 0.6848 GB, free: 11.47 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.168, allocations: 0 / 0.6848 GB, free: 11.47 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002057/0.1683, allocations: 12 kB / 0.6848 GB, free: 11.46 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.000329/0.1686, allocations: 0.6028 MB / 0.6854 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.291e-05/0.1687, allocations: 7.938 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1687, allocations: 0 / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.316e-06/0.1687, allocations: 4 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001236/0.1688, allocations: 0 / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002915/0.1691, allocations: 114.9 kB / 0.6856 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.1693, allocations: 0.669 MB / 0.6862 GB, free: 9.969 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.94e-05/0.1693, allocations: 0 / 0.6862 GB, free: 9.969 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.156e-05/0.1694, allocations: 11.44 kB / 0.6862 GB, free: 9.957 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1694, allocations: 0 / 0.6862 GB, free: 9.957 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02071/0.1901, allocations: 1.026 MB / 0.6872 GB, free: 9.047 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.936/8.126, allocations: 3.938 kB / 0.6872 GB, free: 9.043 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)