Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.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.Examples.Splice,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Splice,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice",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.008235/0.008235, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001867/0.001867, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002103/0.002103, allocations: 275 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9926/0.9926, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001847/0.001847, allocations: 91.94 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1821, allocations: 86.97 MB / 0.7659 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Splice): time 0.003771/0.1859, allocations: 1.5 MB / 0.7674 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001404/0.1873, allocations: 0.6402 MB / 0.768 GB, free: 6.77 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.031e-05/0.1874, allocations: 8 kB / 0.768 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 4.305e-05/0.1875, allocations: 3.938 kB / 0.768 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.243e-05/0.1876, allocations: 7.922 kB / 0.768 GB, free: 6.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005196/0.1881, allocations: 83.67 kB / 0.7681 GB, free: 6.668 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.463e-05/0.1882, allocations: 27.92 kB / 0.7681 GB, free: 6.641 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1883, allocations: 28.19 kB / 0.7682 GB, free: 6.613 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.398e-05/0.1885, allocations: 15.92 kB / 0.7682 GB, free: 6.598 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 8.641e-05/0.1886, allocations: 23.92 kB / 0.7682 GB, free: 6.574 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.1886, allocations: 3.938 kB / 0.7682 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002706/0.1889, allocations: 99.89 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.783e-05/0.1889, allocations: 7.984 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.885e-05/0.1889, allocations: 15.88 kB / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002489/0.1892, allocations: 83.77 kB / 0.7684 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.1892, allocations: 0 / 0.7684 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.312e-06/0.1892, allocations: 3.938 kB / 0.7684 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.68e-06/0.1892, allocations: 0 / 0.7684 GB, free: 6.363 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000563/0.1898, allocations: 371.2 kB / 0.7688 GB, free: 5.953 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.1899, allocations: 8.031 kB / 0.7688 GB, free: 5.945 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.234e-05/0.1899, allocations: 30.75 kB / 0.7688 GB, free: 5.906 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.939e-05/0.19, allocations: 4.938 kB / 0.7688 GB, free: 5.902 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.1901, allocations: 176.3 kB / 0.769 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.1902, allocations: 4.312 kB / 0.769 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.285e-05/0.1902, allocations: 8.375 kB / 0.769 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1904, allocations: 53.8 kB / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1904, allocations: 0 / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.1905, allocations: 8 kB / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1905, allocations: 0 / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/0.1906, allocations: 31.86 kB / 0.7691 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004531/0.1911, allocations: 280.8 kB / 0.7693 GB, free: 5.258 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00011/0.1912, allocations: 26.58 kB / 0.7694 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.415e-05/0.1913, allocations: 28.84 kB / 0.7694 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006755/0.192, allocations: 0.5505 MB / 0.7699 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.1921, allocations: 34.56 kB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.833e-06/0.1921, allocations: 0 / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003779/0.1924, allocations: 65.62 kB / 0.77 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.1925, allocations: 55.53 kB / 0.7701 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.1927, allocations: 121.8 kB / 0.7702 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.1927, allocations: 29.7 kB / 0.7702 GB, free: 4.168 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.1928, allocations: 84.14 kB / 0.7703 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.1928, allocations: 11.89 kB / 0.7703 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.862e-05/0.1929, allocations: 13.72 kB / 0.7703 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.193, allocations: 318.8 kB / 0.7706 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.856e-05/0.1931, allocations: 19.94 kB / 0.7706 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.134e-05/0.1932, allocations: 7.984 kB / 0.7706 GB, free: 3.703 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001257/0.1933, allocations: 28.84 kB / 0.7707 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1933, allocations: 0 / 0.7707 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002052/0.1935, allocations: 57.64 kB / 0.7707 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1936, allocations: 4 kB / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.1936, allocations: 0 / 0.7707 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.1936, allocations: 4.094 kB / 0.7707 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.592e-05/0.1937, allocations: 11.98 kB / 0.7708 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.1937, allocations: 0 / 0.7708 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.281e-05/0.1938, allocations: 0 / 0.7708 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.1938, allocations: 3.938 kB / 0.7708 GB, free: 3.586 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 (2): * Single equations (assignments): 2 * 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 0.0001074/0.1939, allocations: 118.4 kB / 0.7709 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.931e-05/0.194, allocations: 4 kB / 0.7709 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002407/0.1942, allocations: 61.2 kB / 0.7709 GB, free: 3.391 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1943, allocations: 4.031 kB / 0.7709 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.1943, allocations: 3.984 kB / 0.7709 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1943, allocations: 0 / 0.7709 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.1946, allocations: 173.5 kB / 0.7711 GB, free: 3.164 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1946, allocations: 4 kB / 0.7711 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.999e-05/0.1947, allocations: 4 kB / 0.7711 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.1947, allocations: 0 / 0.7711 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.1947, allocations: 4 kB / 0.7711 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.1947, allocations: 0 / 0.7711 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1947, allocations: 0 / 0.7711 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002456/0.195, allocations: 159.4 kB / 0.7713 GB, free: 2.98 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.048e-05/0.195, allocations: 85.06 kB / 0.7713 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.1951, allocations: 3.938 kB / 0.7714 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.1952, allocations: 0 / 0.7714 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.1953, allocations: 7.984 kB / 0.7714 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.1953, allocations: 0 / 0.7714 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.985e-05/0.1954, allocations: 107.7 kB / 0.7715 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/0.1954, allocations: 0 / 0.7715 GB, free: 2.762 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004325/0.1958, allocations: 8 kB / 0.7715 GB, free: 2.754 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 (2): * Single equations (assignments): 2 * 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.0008002/0.1966, allocations: 0.6929 MB / 0.7721 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.1969, allocations: 28.02 kB / 0.7722 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1969, allocations: 0 / 0.7722 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 6.859e-05/0.197, allocations: 11.98 kB / 0.7722 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.1974, allocations: 4.328 kB / 0.7722 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.1994, allocations: 1.316 MB / 0.7735 GB, free: 0.5938 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3201/0.5195, allocations: 0.681 MB / 0.7741 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.124e-05/0.5196, allocations: 8.812 kB / 0.7741 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.407e-05/0.5197, allocations: 15.25 kB / 0.7742 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of SimCode: time 1.804e-06/0.5197, allocations: 0 / 0.7742 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01754/0.5373, allocations: 1.523 MB / 0.7756 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/7.957, allocations: 4.781 kB / 0.7757 GB, free: 14.11 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe 2>&1)