Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.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.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline",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.8078/0.8078, allocations: 143.4 MB / 158.3 MB, free: 5.824 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.001199/0.001199, allocations: 187 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.571/1.571, allocations: 223.2 MB / 447.7 MB, free: 6.535 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.001025/0.001025, allocations: 92.27 kB / 0.5187 GB, free: 2.895 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00185/0.00185, allocations: 276.9 kB / 0.6005 GB, free: 49 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004801/0.0004801, allocations: 20 kB / 0.693 GB, free: 2.211 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4207/0.4212, allocations: 82.77 MB / 0.7738 GB, free: 26.23 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.5757, allocations: 110.1 MB / 0.8814 GB, free: 11.95 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003658/0.5761, allocations: 95.92 kB / 0.8814 GB, free: 11.85 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01013/0.5863, allocations: 3.267 MB / 0.8846 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.834e-06/0.5863, allocations: 0 / 0.8846 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.944e-06/0.5863, allocations: 0 / 0.8846 GB, free: 8.582 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004603/0.5868, allocations: 442.7 kB / 0.8851 GB, free: 8.09 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.5869, allocations: 8.031 kB / 0.8851 GB, free: 8.082 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.5869, allocations: 46.55 kB / 0.8851 GB, free: 8.027 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.228e-05/0.587, allocations: 3.906 kB / 0.8851 GB, free: 8.023 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.5871, allocations: 167 kB / 0.8853 GB, free: 7.82 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.5871, allocations: 7.953 kB / 0.8853 GB, free: 7.812 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.5871, allocations: 0 / 0.8853 GB, free: 7.812 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001942/0.5873, allocations: 85.59 kB / 0.8854 GB, free: 7.723 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.5873, allocations: 0 / 0.8854 GB, free: 7.723 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.5874, allocations: 0 / 0.8854 GB, free: 7.723 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.5874, allocations: 0 / 0.8854 GB, free: 7.723 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.5875, allocations: 51.97 kB / 0.8854 GB, free: 7.672 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004266/0.5879, allocations: 280.9 kB / 0.8857 GB, free: 7.348 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000115/0.5881, allocations: 58.55 kB / 0.8857 GB, free: 7.281 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 9.989e-06/0.5881, allocations: 7.938 kB / 0.8857 GB, free: 7.273 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/0.5881, allocations: 30.56 kB / 0.8858 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.513e-06/0.5881, allocations: 0 / 0.8858 GB, free: 7.234 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0004378/0.5886, allocations: 276.5 kB / 0.886 GB, free: 6.934 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.5886, allocations: 77.11 kB / 0.8861 GB, free: 6.84 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.72e-05/0.5887, allocations: 113 kB / 0.8862 GB, free: 6.723 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.5888, allocations: 29.73 kB / 0.8862 GB, free: 6.688 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 5.665e-05/0.5888, allocations: 92.12 kB / 0.8863 GB, free: 6.594 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.5889, allocations: 3.906 kB / 0.8863 GB, free: 6.59 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.913e-06/0.5889, allocations: 11.88 kB / 0.8863 GB, free: 6.578 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.589, allocations: 310.8 kB / 0.8866 GB, free: 6.266 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001026/0.5891, allocations: 59.95 kB / 0.8867 GB, free: 6.207 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.2e-05/0.5892, allocations: 59.91 kB / 0.8868 GB, free: 6.148 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.5893, allocations: 127.3 kB / 0.8869 GB, free: 6.012 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.5894, allocations: 0 / 0.8869 GB, free: 6.012 MB / 0.5417 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002798/0.5896, allocations: 216.9 kB / 0.8871 GB, free: 5.781 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.5897, allocations: 59.41 kB / 0.8871 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5897, allocations: 0 / 0.8871 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.5897, allocations: 0 / 0.8871 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.864e-05/0.5898, allocations: 7.984 kB / 0.8871 GB, free: 5.703 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.5898, allocations: 4 kB / 0.8872 GB, free: 5.699 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.709e-05/0.5899, allocations: 11.94 kB / 0.8872 GB, free: 5.688 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.5899, allocations: 3.984 kB / 0.8872 GB, free: 5.684 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: 1 (cubSpl.i) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 2 * 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 0.000116/0.59, allocations: 152 kB / 0.8873 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.5901, allocations: 7.906 kB / 0.8873 GB, free: 5.512 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.566e-05/0.5901, allocations: 7.906 kB / 0.8873 GB, free: 5.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.5901, allocations: 4 kB / 0.8873 GB, free: 5.496 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.5901, allocations: 4 kB / 0.8873 GB, free: 5.492 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.5901, allocations: 7.922 kB / 0.8873 GB, free: 5.484 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001679/0.5903, allocations: 161.7 kB / 0.8875 GB, free: 5.273 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5903, allocations: 3.953 kB / 0.8875 GB, free: 5.27 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.001e-05/0.5903, allocations: 7.984 kB / 0.8875 GB, free: 5.262 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.5904, allocations: 0 / 0.8875 GB, free: 5.262 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.5904, allocations: 12.06 kB / 0.8875 GB, free: 5.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.5904, allocations: 0 / 0.8875 GB, free: 5.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.5904, allocations: 0 / 0.8875 GB, free: 5.25 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002787/0.5907, allocations: 252.5 kB / 0.8878 GB, free: 4.984 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.225e-05/0.5907, allocations: 85.06 kB / 0.8878 GB, free: 4.883 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.5907, allocations: 0 / 0.8878 GB, free: 4.883 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.844e-05/0.5908, allocations: 7.984 kB / 0.8879 GB, free: 4.875 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.396e-05/0.5909, allocations: 8 kB / 0.8879 GB, free: 4.867 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.5909, allocations: 7.984 kB / 0.8879 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.902e-05/0.591, allocations: 99.23 kB / 0.888 GB, free: 4.762 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.591, allocations: 0 / 0.888 GB, free: 4.762 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003144/0.5913, allocations: 67.94 kB / 0.888 GB, free: 4.695 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: 1 (cubSpl.i) * Number of discrete states: 1 (cubSpl.i) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0007117/0.592, allocations: 0.8517 MB / 0.8889 GB, free: 3.812 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003224/0.5924, allocations: 238.7 kB / 0.8891 GB, free: 3.555 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5924, allocations: 0 / 0.8891 GB, free: 3.555 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001195/0.5925, allocations: 103.3 kB / 0.8892 GB, free: 3.441 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.5926, allocations: 12.55 kB / 0.8892 GB, free: 3.43 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006205/0.5933, allocations: 418.5 kB / 0.8896 GB, free: 2.969 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.5935, allocations: 0.6848 MB / 0.8903 GB, free: 2.258 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.551e-05/0.5936, allocations: 0 / 0.8903 GB, free: 2.258 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.336e-05/0.5936, allocations: 19.42 kB / 0.8903 GB, free: 2.238 MB / 0.5417 GB Notification: Performance of SimCode: time 3.3e-07/0.5936, allocations: 0 / 0.8903 GB, free: 2.238 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01318/0.6068, allocations: 2.466 MB / 0.8927 GB, free: 15.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.607, allocations: 222.3 kB / 0.8929 GB, free: 15.75 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/2.259, allocations: 4 kB / 0.8929 GB, free: 15.75 MB / 0.5573 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_ActiveBeams_BaseClasses_Examples_DerivateCubicSpline.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.ActiveBeams.BaseClasses.Examples.DerivateCubicSpline.pipe 2>&1)