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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.8519/0.8519, allocations: 143.4 MB / 158.3 MB, free: 5.789 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001661/0.001661, allocations: 171.9 kB / 191.5 MB, free: 5.781 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 223.2 MB / 447.7 MB, free: 4.84 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009387/0.000939, allocations: 88.34 kB / 0.5187 GB, free: 1.199 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001899/0.001899, allocations: 272.1 kB / 0.6005 GB, free: 48.8 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004462/0.0004463, allocations: 24.06 kB / 0.6929 GB, free: 59.64 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1431, allocations: 82.8 MB / 0.7738 GB, free: 13.79 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1526/0.2958, allocations: 108.9 MB / 0.8802 GB, free: 0.7227 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.2961, allocations: 79.94 kB / 0.8802 GB, free: 0.6445 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.32/0.6162, allocations: 1.694 MB / 0.8819 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.184e-06/0.6162, allocations: 0 / 0.8819 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.529e-06/0.6162, allocations: 0 / 0.8819 GB, free: 109.1 MB / 0.5417 GB 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.0001837/0.6164, allocations: 343.3 kB / 0.8822 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.6165, allocations: 8.906 kB / 0.8822 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.599e-05/0.6165, allocations: 33.62 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.831e-05/0.6165, allocations: 2.75 kB / 0.8823 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.744e-05/0.6166, allocations: 159.1 kB / 0.8824 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.6166, allocations: 7.234 kB / 0.8824 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.494e-06/0.6166, allocations: 0 / 0.8824 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.301e-05/0.6167, allocations: 28.98 kB / 0.8825 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.631e-06/0.6167, allocations: 0.8438 kB / 0.8825 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.982e-06/0.6167, allocations: 0 / 0.8825 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.6167, allocations: 0.8125 kB / 0.8825 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.655e-05/0.6167, allocations: 6.922 kB / 0.8825 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.884e-05/0.6168, allocations: 151.9 kB / 0.8826 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 3.204e-05/0.6168, allocations: 24.86 kB / 0.8826 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000315/0.6172, allocations: 0.5578 MB / 0.8832 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.675e-05/0.6172, allocations: 35.16 kB / 0.8832 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1): time 1.472e-06/0.6172, allocations: 0 / 0.8832 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1): time 0.0001064/0.6173, allocations: 43.67 kB / 0.8833 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.864e-05/0.6173, allocations: 55.53 kB / 0.8833 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.398e-05/0.6174, allocations: 85 kB / 0.8834 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.162e-06/0.6174, allocations: 25.7 kB / 0.8834 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.024e-05/0.6174, allocations: 80.14 kB / 0.8835 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.6174, allocations: 4.734 kB / 0.8835 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-06/0.6174, allocations: 3.75 kB / 0.8835 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 4.164e-05/0.6175, allocations: 310.8 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.476e-06/0.6175, allocations: 0.5156 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.531e-06/0.6175, allocations: 10.88 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.563e-05/0.6175, allocations: 0.5156 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.6175, allocations: 0 / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.014e-05/0.6176, allocations: 35.31 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.6176, allocations: 11.36 kB / 0.8839 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.6176, allocations: 1.062 kB / 0.8839 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.6176, allocations: 0 / 0.8839 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.736e-05/0.6177, allocations: 0 / 0.8839 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.6177, allocations: 2.812 kB / 0.8839 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.152e-05/0.6177, allocations: 4.094 kB / 0.8839 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.6177, allocations: 0 / 0.8839 GB, free: 106.9 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.6177, allocations: 111.9 kB / 0.884 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-06/0.6177, allocations: 0 / 0.884 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.532e-05/0.6178, allocations: 49.5 kB / 0.884 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.6178, allocations: 0 / 0.884 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.6178, allocations: 0 / 0.884 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.6179, allocations: 5.281 kB / 0.884 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.409e-05/0.6179, allocations: 151.1 kB / 0.8842 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.6179, allocations: 0 / 0.8842 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.228e-05/0.6179, allocations: 0 / 0.8842 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.6179, allocations: 2.812 kB / 0.8842 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.809e-06/0.6179, allocations: 0 / 0.8842 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.6179, allocations: 4.5 kB / 0.8842 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.618, allocations: 0 / 0.8842 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.685e-05/0.618, allocations: 65.61 kB / 0.8842 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 1.621e-05/0.618, allocations: 80.77 kB / 0.8843 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.458e-06/0.618, allocations: 0 / 0.8843 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.446e-06/0.6181, allocations: 3.938 kB / 0.8843 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.283e-05/0.6181, allocations: 5.688 kB / 0.8843 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.6181, allocations: 2.844 kB / 0.8843 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.059e-05/0.6181, allocations: 78.92 kB / 0.8844 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1e-07/0.6181, allocations: 0 / 0.8844 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001824/0.6183, allocations: 9.219 kB / 0.8844 GB, free: 106.3 MB / 0.5417 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002463/0.6185, allocations: 0.6037 MB / 0.885 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 5.393e-05/0.6186, allocations: 9.25 kB / 0.885 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.6186, allocations: 0 / 0.885 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.452e-06/0.6186, allocations: 3.312 kB / 0.885 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.111e-05/0.6187, allocations: 10.45 kB / 0.885 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002221/0.6189, allocations: 107.6 kB / 0.8851 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.991e-05/0.619, allocations: 0.675 MB / 0.8858 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.147e-05/0.6191, allocations: 6.797 kB / 0.8858 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.246e-05/0.6191, allocations: 8.688 kB / 0.8858 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of SimCode: time 2.21e-07/0.6191, allocations: 0 / 0.8858 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01163/0.6307, allocations: 0.8258 MB / 0.8866 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.6309, allocations: 208 kB / 0.8868 GB, free: 104.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.425/2.056, allocations: 0 / 0.8868 GB, free: 104.5 MB / 0.5417 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 & /home/hudson/saved_omc/OMSimulator/install/linux/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)