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.001128/0.001128, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001191/0.001191, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.212/1.212, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001856/0.001856, allocations: 280.1 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8675/0.8675, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 91.94 kB / 0.5946 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2011/0.2027, allocations: 86.98 MB / 0.6796 GB, free: 1.066 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.SpliceFunction): time 0.001813/0.2046, allocations: 0.6369 MB / 0.6802 GB, free: 448 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.2062, allocations: 1.265 MB / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.152e-05/0.2062, allocations: 1.719 kB / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.707e-05/0.2062, allocations: 0 / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.979e-06/0.2062, allocations: 0 / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003002/0.2065, allocations: 48.77 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.985e-05/0.2066, allocations: 0 / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.067e-05/0.2066, allocations: 4 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.578e-05/0.2066, allocations: 0.7188 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.469e-05/0.2067, allocations: 1.5 kB / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.679e-06/0.2067, allocations: 0 / 0.6815 GB, free: 15.11 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002338/0.2069, allocations: 99.83 kB / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.796e-06/0.207, allocations: 0 / 0.6816 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.792e-05/0.207, allocations: 4.547 kB / 0.6816 GB, free: 15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.2071, allocations: 51.94 kB / 0.6816 GB, free: 14.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2071, allocations: 0.625 kB / 0.6816 GB, free: 14.95 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2071, allocations: 4 kB / 0.6816 GB, free: 14.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.948e-06/0.2071, allocations: 0 / 0.6816 GB, free: 14.95 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.0003021/0.2074, allocations: 335.5 kB / 0.6819 GB, free: 14.57 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.2075, allocations: 8.031 kB / 0.682 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.363e-05/0.2075, allocations: 30.75 kB / 0.682 GB, free: 14.53 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.376e-05/0.2076, allocations: 4.938 kB / 0.682 GB, free: 14.52 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.817e-05/0.2076, allocations: 160.7 kB / 0.6821 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.328e-06/0.2077, allocations: 384 / 0.6821 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.2077, allocations: 384 / 0.6821 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.046e-05/0.2078, allocations: 33.83 kB / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.2078, allocations: 3.938 kB / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.2078, allocations: 4 kB / 0.6822 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.2078, allocations: 3.984 kB / 0.6822 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.742e-05/0.2078, allocations: 0 / 0.6822 GB, free: 14.28 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001457/0.208, allocations: 145.7 kB / 0.6823 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.396e-05/0.208, allocations: 18.61 kB / 0.6823 GB, free: 14.06 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.841e-05/0.2081, allocations: 4.859 kB / 0.6823 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005413/0.2086, allocations: 0.5662 MB / 0.6829 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.2086, allocations: 38.5 kB / 0.6829 GB, free: 13.31 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.2087, allocations: 3.938 kB / 0.6829 GB, free: 13.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001198/0.2088, allocations: 33.64 kB / 0.683 GB, free: 13.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.2088, allocations: 51.41 kB / 0.683 GB, free: 13.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.564e-05/0.2089, allocations: 97.97 kB / 0.6831 GB, free: 13.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.2089, allocations: 29.7 kB / 0.6831 GB, free: 13.06 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.442e-05/0.2089, allocations: 80.14 kB / 0.6832 GB, free: 12.98 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.2089, allocations: 7.938 kB / 0.6832 GB, free: 12.97 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.226e-05/0.209, allocations: 9.719 kB / 0.6832 GB, free: 12.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.703e-05/0.2091, allocations: 310.8 kB / 0.6835 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.11e-05/0.2091, allocations: 4 kB / 0.6835 GB, free: 12.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.721e-06/0.2091, allocations: 0 / 0.6835 GB, free: 12.64 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.121e-05/0.2091, allocations: 16.86 kB / 0.6836 GB, free: 12.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2092, allocations: 0 / 0.6836 GB, free: 12.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.969e-05/0.2092, allocations: 37.69 kB / 0.6836 GB, free: 12.58 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2092, allocations: 7.938 kB / 0.6836 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2092, allocations: 0 / 0.6836 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.2092, allocations: 4 kB / 0.6836 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.229e-05/0.2093, allocations: 4 kB / 0.6836 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.371e-06/0.2093, allocations: 0 / 0.6836 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.2093, allocations: 7.844 kB / 0.6836 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.869e-06/0.2093, allocations: 4.031 kB / 0.6836 GB, free: 12.55 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 6.365e-05/0.2094, allocations: 111.2 kB / 0.6837 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.035e-06/0.2094, allocations: 3.938 kB / 0.6837 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.358e-05/0.2095, allocations: 48.73 kB / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2095, allocations: 0 / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.2095, allocations: 0 / 0.6838 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2095, allocations: 4 kB / 0.6838 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.092e-05/0.2096, allocations: 145.7 kB / 0.6839 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.02e-07/0.2096, allocations: 0 / 0.6839 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.456e-05/0.2097, allocations: 3.984 kB / 0.6839 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.2097, allocations: 7.938 kB / 0.6839 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.131e-06/0.2097, allocations: 0 / 0.6839 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.2097, allocations: 0 / 0.6839 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2097, allocations: 0 / 0.6839 GB, free: 12.17 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.146e-05/0.2098, allocations: 57.08 kB / 0.684 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.2098, allocations: 93.06 kB / 0.6841 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.606e-06/0.2098, allocations: 0 / 0.6841 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-06/0.2098, allocations: 0 / 0.6841 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.009e-05/0.2098, allocations: 0 / 0.6841 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-06/0.2098, allocations: 0 / 0.6841 GB, free: 11.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.637e-05/0.2099, allocations: 75.28 kB / 0.6841 GB, free: 11.91 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2099, allocations: 0 / 0.6841 GB, free: 11.91 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001748/0.2101, allocations: 11.94 kB / 0.6841 GB, free: 11.9 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.0003642/0.2104, allocations: 0.6046 MB / 0.6847 GB, free: 11.26 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.304e-05/0.2105, allocations: 7.938 kB / 0.6847 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2105, allocations: 0 / 0.6847 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.775e-06/0.2105, allocations: 4 kB / 0.6848 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001251/0.2107, allocations: 5.547 kB / 0.6848 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002697/0.2109, allocations: 116.5 kB / 0.6849 GB, free: 11.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000246/0.2112, allocations: 0.6692 MB / 0.6855 GB, free: 10.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.163e-05/0.2112, allocations: 4 kB / 0.6855 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.387e-05/0.2112, allocations: 7.438 kB / 0.6855 GB, free: 10.39 MB / 494.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2112, allocations: 0 / 0.6855 GB, free: 10.39 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01651/0.2277, allocations: 0.9265 MB / 0.6864 GB, free: 9.605 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001877/0.228, allocations: 223 kB / 0.6866 GB, free: 9.352 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/1.903, allocations: 0 / 0.6866 GB, free: 9.352 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)