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.005419/0.00542, allocations: 95.02 kB / 15.73 MB, free: 6.484 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.001449/0.001448, allocations: 194.3 kB / 16.67 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.497/1.497, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002484/0.002485, allocations: 286.5 kB / 290.8 MB, free: 1.957 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.054/1.054, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002777/0.002777, allocations: 100.9 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1875/0.1903, allocations: 86.97 MB / 0.7659 GB, free: 8.887 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001775/0.1921, allocations: 0.5814 MB / 0.7665 GB, free: 8.309 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1939, allocations: 1.252 MB / 0.7677 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.983e-05/0.1939, allocations: 0 / 0.7677 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.827e-05/0.1939, allocations: 3.938 kB / 0.7677 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.512e-06/0.194, allocations: 0 / 0.7677 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003773/0.1944, allocations: 59.81 kB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.1944, allocations: 7.938 kB / 0.7678 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.096e-05/0.1945, allocations: 4 kB / 0.7678 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.1945, allocations: 0 / 0.7678 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.991e-05/0.1946, allocations: 0 / 0.7678 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.1946, allocations: 11.92 kB / 0.7678 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.1948, allocations: 91.91 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.191e-05/0.1949, allocations: 3.938 kB / 0.7679 GB, free: 6.859 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.932e-05/0.1949, allocations: 11.98 kB / 0.7679 GB, free: 6.848 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.195, allocations: 52.14 kB / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.1951, allocations: 4 kB / 0.768 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1951, allocations: 0 / 0.768 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.1951, allocations: 4 kB / 0.768 GB, free: 6.789 MB / 0.5606 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.0003809/0.1955, allocations: 323.4 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.1955, allocations: 12.03 kB / 0.7683 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.099e-05/0.1956, allocations: 30.75 kB / 0.7683 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.1956, allocations: 0.9375 kB / 0.7683 GB, free: 6.375 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001162/0.1957, allocations: 160.4 kB / 0.7685 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.1957, allocations: 384 / 0.7685 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.141e-06/0.1957, allocations: 384 / 0.7685 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.397e-05/0.1958, allocations: 37.77 kB / 0.7685 GB, free: 6.137 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1958, allocations: 4 kB / 0.7685 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.1959, allocations: 0 / 0.7685 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.1959, allocations: 0 / 0.7685 GB, free: 6.133 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.47e-05/0.1959, allocations: 11.98 kB / 0.7685 GB, free: 6.121 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.1961, allocations: 145.7 kB / 0.7687 GB, free: 5.93 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.949e-05/0.1961, allocations: 14.58 kB / 0.7687 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.867e-05/0.1961, allocations: 8.953 kB / 0.7687 GB, free: 5.895 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006681/0.1968, allocations: 0.57 MB / 0.7693 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.144e-05/0.1968, allocations: 34.5 kB / 0.7693 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1969, allocations: 0 / 0.7693 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001377/0.197, allocations: 37.69 kB / 0.7693 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.999e-05/0.197, allocations: 55.34 kB / 0.7694 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.367e-05/0.1971, allocations: 97.97 kB / 0.7695 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1971, allocations: 29.7 kB / 0.7695 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.218e-05/0.1972, allocations: 80.14 kB / 0.7696 GB, free: 4.82 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.784e-05/0.1972, allocations: 3.953 kB / 0.7696 GB, free: 4.816 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-05/0.1972, allocations: 13.72 kB / 0.7696 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.1974, allocations: 310.8 kB / 0.7699 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.417e-06/0.1974, allocations: 0 / 0.7699 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.467e-06/0.1974, allocations: 3.938 kB / 0.7699 GB, free: 4.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.92e-05/0.1975, allocations: 16.92 kB / 0.7699 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1975, allocations: 0 / 0.7699 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.746e-05/0.1975, allocations: 37.69 kB / 0.7699 GB, free: 4.418 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1975, allocations: 7.938 kB / 0.7699 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1975, allocations: 0 / 0.7699 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1976, allocations: 3.938 kB / 0.77 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.998e-05/0.1976, allocations: 4 kB / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.1976, allocations: 0 / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.309e-05/0.1976, allocations: 0 / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-06/0.1976, allocations: 0 / 0.77 GB, free: 4.402 MB / 0.5606 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.949e-05/0.1977, allocations: 110.5 kB / 0.7701 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.1978, allocations: 3.938 kB / 0.7701 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.206e-05/0.1978, allocations: 48.75 kB / 0.7701 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.1979, allocations: 0 / 0.7701 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1979, allocations: 0 / 0.7701 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1979, allocations: 0 / 0.7701 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.198, allocations: 141.7 kB / 0.7702 GB, free: 4.043 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.198, allocations: 4.031 kB / 0.7703 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.513e-05/0.198, allocations: 7.984 kB / 0.7703 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.198, allocations: 3.938 kB / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.94e-06/0.198, allocations: 0 / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.198, allocations: 0 / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.198, allocations: 0 / 0.7703 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.701e-05/0.1981, allocations: 61.08 kB / 0.7703 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.199e-05/0.1982, allocations: 85.03 kB / 0.7704 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.095e-05/0.1982, allocations: 4.031 kB / 0.7704 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.1982, allocations: 0 / 0.7704 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.179e-05/0.1982, allocations: 7.938 kB / 0.7704 GB, free: 3.836 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.1982, allocations: 4 kB / 0.7704 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.325e-05/0.1983, allocations: 75.8 kB / 0.7705 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1983, allocations: 0 / 0.7705 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002538/0.1985, allocations: 7.938 kB / 0.7705 GB, free: 3.75 MB / 0.5606 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.000456/0.199, allocations: 0.6046 MB / 0.7711 GB, free: 3.113 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.112e-05/0.1991, allocations: 7.938 kB / 0.7711 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1991, allocations: 0 / 0.7711 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.266e-06/0.1991, allocations: 4 kB / 0.7711 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.1993, allocations: 6.062 kB / 0.7711 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003603/0.1996, allocations: 110.8 kB / 0.7712 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002988/0.2, allocations: 0.669 MB / 0.7719 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.799e-05/0.2, allocations: 0 / 0.7719 GB, free: 2.254 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.682e-05/0.2, allocations: 7.438 kB / 0.7719 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of SimCode: time 2.01e-07/0.2, allocations: 0 / 0.7719 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.2216, allocations: 1.06 MB / 0.7729 GB, free: 1.324 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.828/9.049, allocations: 15.75 kB / 0.7729 GB, free: 1.309 MB / 0.5606 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/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)