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/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.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/BuildingSystems 2.0.0-master/package.mo): time 0.969/0.969, allocations: 143.3 MB / 158.3 MB, free: 5.77 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.00109/0.00109, allocations: 169.2 kB / 191.5 MB, free: 5.75 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.506/1.506, allocations: 223.1 MB / 447.7 MB, free: 4.797 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.001327/0.001326, allocations: 96.25 kB / 0.5187 GB, free: 1.156 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001817/0.001817, allocations: 270.7 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005117/0.0005117, allocations: 18.94 kB / 0.6929 GB, free: 59.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.1917, allocations: 82.79 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6193/0.811, allocations: 109.8 MB / 0.881 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000422/0.8115, allocations: 74.55 kB / 0.8811 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.007112/0.8187, allocations: 2.211 MB / 0.8833 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.845e-06/0.8187, allocations: 0 / 0.8833 GB, free: 107.8 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.824e-06/0.8188, allocations: 2.656 kB / 0.8833 GB, free: 107.8 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003968/0.8192, allocations: 373.4 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/0.8192, allocations: 9.781 kB / 0.8836 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.816e-05/0.8193, allocations: 31.45 kB / 0.8837 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.262e-05/0.8193, allocations: 11.09 kB / 0.8837 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.8195, allocations: 167.4 kB / 0.8838 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.8195, allocations: 7.438 kB / 0.8838 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.8195, allocations: 0 / 0.8838 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001936/0.8197, allocations: 67.77 kB / 0.8839 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.8197, allocations: 0.5625 kB / 0.8839 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.194e-05/0.8198, allocations: 2.438 kB / 0.8839 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.8198, allocations: 3.938 kB / 0.8839 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.8199, allocations: 34.55 kB / 0.8839 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000342/0.8202, allocations: 278.3 kB / 0.8842 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 8.738e-05/0.8203, allocations: 40.8 kB / 0.8842 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000364/0.8207, allocations: 0.5567 MB / 0.8848 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.8207, allocations: 34 kB / 0.8848 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.8207, allocations: 0 / 0.8848 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0002499/0.821, allocations: 69.31 kB / 0.8849 GB, free: 106.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.821, allocations: 62.25 kB / 0.8849 GB, free: 106 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.277e-05/0.8211, allocations: 111 kB / 0.885 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.228e-06/0.8211, allocations: 25.7 kB / 0.8851 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.596e-05/0.8212, allocations: 89.55 kB / 0.8852 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.8212, allocations: 7.422 kB / 0.8852 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.8212, allocations: 0 / 0.8852 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.022e-05/0.8213, allocations: 321.2 kB / 0.8855 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.152e-05/0.8213, allocations: 13.45 kB / 0.8855 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.423e-05/0.8214, allocations: 11.91 kB / 0.8855 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.131e-05/0.8214, allocations: 11.34 kB / 0.8855 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.8214, allocations: 0 / 0.8855 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001071/0.8215, allocations: 59.38 kB / 0.8856 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.8216, allocations: 10.62 kB / 0.8856 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.8216, allocations: 0 / 0.8856 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.8216, allocations: 0 / 0.8856 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.219e-05/0.8217, allocations: 9.844 kB / 0.8856 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.8217, allocations: 0 / 0.8856 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.61e-05/0.8217, allocations: 8.328 kB / 0.8856 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.8217, allocations: 2.766 kB / 0.8856 GB, free: 105.4 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 (2): * Single equations (assignments): 2 * 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 6.349e-05/0.8218, allocations: 115.5 kB / 0.8857 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.8218, allocations: 6.438 kB / 0.8857 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.822, allocations: 68.08 kB / 0.8858 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.822, allocations: 3.938 kB / 0.8858 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.822, allocations: 0.5 kB / 0.8858 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.822, allocations: 2.969 kB / 0.8858 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.8222, allocations: 172.9 kB / 0.8859 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8222, allocations: 1 kB / 0.8859 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.033e-05/0.8222, allocations: 5.969 kB / 0.8859 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.8222, allocations: 4.031 kB / 0.886 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.8222, allocations: 0 / 0.886 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.8222, allocations: 6.969 kB / 0.886 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.8222, allocations: 0 / 0.886 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001413/0.8224, allocations: 158.6 kB / 0.8861 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.3e-05/0.8224, allocations: 81.14 kB / 0.8862 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.786e-05/0.8224, allocations: 7.406 kB / 0.8862 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.254e-05/0.8225, allocations: 6.969 kB / 0.8862 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.533e-05/0.8226, allocations: 2.406 kB / 0.8862 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.548e-06/0.8226, allocations: 0.75 kB / 0.8862 GB, free: 104.8 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.221e-05/0.8226, allocations: 92.28 kB / 0.8863 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8226, allocations: 0 / 0.8863 GB, free: 104.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000219/0.8228, allocations: 22.34 kB / 0.8863 GB, free: 104.7 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 (2): * Single equations (assignments): 2 * 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.0003773/0.8232, allocations: 0.6999 MB / 0.887 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.8234, allocations: 26.2 kB / 0.887 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.8234, allocations: 4.094 kB / 0.887 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.044e-05/0.8235, allocations: 16.2 kB / 0.887 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.8236, allocations: 1.422 kB / 0.887 GB, free: 104.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000718/0.8244, allocations: 473.6 kB / 0.8875 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000127/0.8245, allocations: 0.6838 MB / 0.8882 GB, free: 103 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 2.453e-05/0.8245, allocations: 2.75 kB / 0.8882 GB, free: 103 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.705e-05/0.8246, allocations: 17.62 kB / 0.8882 GB, free: 103 MB / 0.5417 GB Notification: Performance of SimCode: time 2.21e-07/0.8246, allocations: 4 kB / 0.8882 GB, free: 103 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.837, allocations: 1.254 MB / 0.8894 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.8373, allocations: 171.9 kB / 0.8896 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.525/2.362, allocations: 3.938 kB / 0.8896 GB, free: 102.6 MB / 0.5417 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Splice.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Splice.pipe 2>&1)