Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",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.8992/0.8992, allocations: 143.4 MB / 158.3 MB, free: 5.66 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.001616/0.001616, allocations: 189 kB / 191.5 MB, free: 5.637 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.644/1.644, allocations: 223.2 MB / 447.7 MB, free: 4.824 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.001028/0.001028, allocations: 92.33 kB / 0.5187 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001879/0.001879, allocations: 271.5 kB / 0.6005 GB, free: 48.75 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004168/0.000417, allocations: 11.5 kB / 0.693 GB, free: 59.64 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1906, allocations: 82.8 MB / 0.7738 GB, free: 13.74 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1651/0.3557, allocations: 109.6 MB / 0.8808 GB, free: 0 / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.3767/0.7325, allocations: 73.45 kB / 0.8809 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01231/0.7449, allocations: 4.558 MB / 0.8854 GB, free: 108 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.665e-06/0.7449, allocations: 0 / 0.8854 GB, free: 108 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.181e-06/0.7449, allocations: 0 / 0.8854 GB, free: 108 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.000323/0.7453, allocations: 353.6 kB / 0.8857 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.7453, allocations: 12.73 kB / 0.8857 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.952e-05/0.7454, allocations: 38.17 kB / 0.8857 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.91e-05/0.7454, allocations: 9.234 kB / 0.8858 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.282e-05/0.7455, allocations: 171.1 kB / 0.8859 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.7455, allocations: 0.5625 kB / 0.8859 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.421e-05/0.7455, allocations: 8.312 kB / 0.8859 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.7457, allocations: 47.02 kB / 0.886 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.7457, allocations: 3.984 kB / 0.886 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.7457, allocations: 0 / 0.886 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.7457, allocations: 6.938 kB / 0.886 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.027e-05/0.7458, allocations: 18.7 kB / 0.886 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002383/0.746, allocations: 168.1 kB / 0.8862 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001093/0.7462, allocations: 60.42 kB / 0.8862 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.226e-05/0.7462, allocations: 0 / 0.8862 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.7462, allocations: 36.67 kB / 0.8863 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.7462, allocations: 0 / 0.8863 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.001138/0.7474, allocations: 0.5862 MB / 0.8868 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.7474, allocations: 53.39 kB / 0.8869 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.735e-05/0.7475, allocations: 94.61 kB / 0.887 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.7475, allocations: 30.34 kB / 0.887 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 2.21e-05/0.7475, allocations: 80.14 kB / 0.8871 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 4.133e-05/0.7476, allocations: 42.41 kB / 0.8871 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.7476, allocations: 3.938 kB / 0.8871 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.569e-05/0.7477, allocations: 319.1 kB / 0.8874 GB, free: 106 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.364e-05/0.7477, allocations: 20.52 kB / 0.8874 GB, free: 106 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.185e-05/0.7477, allocations: 26.97 kB / 0.8875 GB, free: 106 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.103e-05/0.7478, allocations: 28.69 kB / 0.8875 GB, free: 106 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.7478, allocations: 0 / 0.8875 GB, free: 106 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001384/0.748, allocations: 99.64 kB / 0.8876 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.748, allocations: 6.625 kB / 0.8876 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.748, allocations: 2.625 kB / 0.8876 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.748, allocations: 0.5625 kB / 0.8876 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.7481, allocations: 27.44 kB / 0.8876 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.7481, allocations: 2.016 kB / 0.8876 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.485e-05/0.7482, allocations: 6.906 kB / 0.8876 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.7482, allocations: 3.359 kB / 0.8876 GB, free: 105.9 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 (13): * Single equations (assignments): 13 * 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.364e-05/0.7482, allocations: 120.6 kB / 0.8877 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.217e-05/0.7483, allocations: 10.88 kB / 0.8878 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001855/0.7485, allocations: 102.1 kB / 0.8879 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.7485, allocations: 0 / 0.8879 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.7485, allocations: 0.5156 kB / 0.8879 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.7485, allocations: 3.703 kB / 0.8879 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003421/0.7488, allocations: 351.1 kB / 0.8882 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7488, allocations: 0 / 0.8882 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.749, allocations: 24.44 kB / 0.8882 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.749, allocations: 4 kB / 0.8882 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.749, allocations: 11.44 kB / 0.8882 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.749, allocations: 0 / 0.8882 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.749, allocations: 0.6094 kB / 0.8882 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002095/0.7492, allocations: 221 kB / 0.8884 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.399e-05/0.7492, allocations: 77.77 kB / 0.8885 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.7493, allocations: 0.6094 kB / 0.8885 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.097e-05/0.7494, allocations: 4 kB / 0.8885 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.495e-05/0.7494, allocations: 17.28 kB / 0.8885 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.7494, allocations: 3.422 kB / 0.8885 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.174e-05/0.7494, allocations: 78.8 kB / 0.8886 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7494, allocations: 3.938 kB / 0.8886 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002801/0.7497, allocations: 43.84 kB / 0.8887 GB, free: 105.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * 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 (11): * Single equations (assignments): 11 * 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.0005356/0.7503, allocations: 0.8006 MB / 0.8894 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000138/0.7504, allocations: 62.66 kB / 0.8895 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.736e-06/0.7504, allocations: 0 / 0.8895 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 4.647e-05/0.7505, allocations: 28.48 kB / 0.8895 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.7506, allocations: 8.641 kB / 0.8895 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009109/0.7515, allocations: 0.6539 MB / 0.8902 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001358/0.7517, allocations: 0.6935 MB / 0.8909 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 4.759e-05/0.7517, allocations: 13.53 kB / 0.8909 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.7518, allocations: 22.42 kB / 0.8909 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of SimCode: time 2.4e-07/0.7518, allocations: 0 / 0.8909 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01295/0.7648, allocations: 1.781 MB / 0.8926 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.765, allocations: 228.4 kB / 0.8928 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.651/2.416, allocations: 0 / 0.8928 GB, free: 102.8 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)