Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.8651/0.8651, allocations: 143.3 MB / 158.3 MB, free: 5.773 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.001208/0.001208, allocations: 177.1 kB / 191.5 MB, free: 5.754 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.595/1.595, allocations: 223.2 MB / 447.7 MB, free: 4.805 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.0008702/0.0008703, allocations: 92.27 kB / 0.5187 GB, free: 1.16 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001803/0.001803, allocations: 262.3 kB / 0.6005 GB, free: 48.79 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004532/0.000453, allocations: 16.27 kB / 0.6929 GB, free: 59.59 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1714, allocations: 82.79 MB / 0.7738 GB, free: 13.79 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5281/0.6996, allocations: 110.3 MB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.6999, allocations: 84.27 kB / 0.8815 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.01222/0.7122, allocations: 4.314 MB / 0.8857 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.585e-06/0.7122, allocations: 4 kB / 0.8858 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.7122, allocations: 0 / 0.8858 GB, free: 108.1 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004664/0.7127, allocations: 385.5 kB / 0.8861 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.7128, allocations: 8.719 kB / 0.8861 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.081e-05/0.7128, allocations: 35.52 kB / 0.8862 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.04e-05/0.7129, allocations: 5.844 kB / 0.8862 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.713, allocations: 174.1 kB / 0.8863 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.695e-05/0.713, allocations: 10.59 kB / 0.8863 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.713, allocations: 9.312 kB / 0.8864 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002501/0.7133, allocations: 84.27 kB / 0.8864 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.7133, allocations: 0 / 0.8864 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.7133, allocations: 4.594 kB / 0.8864 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.7133, allocations: 2.969 kB / 0.8864 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002381/0.7136, allocations: 59.12 kB / 0.8865 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005639/0.7142, allocations: 331 kB / 0.8868 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003118/0.7145, allocations: 91.69 kB / 0.8869 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.7145, allocations: 3.375 kB / 0.8869 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.204e-05/0.7145, allocations: 33.81 kB / 0.8869 GB, free: 107 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.7146, allocations: 4 kB / 0.8869 GB, free: 107 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.001608/0.7162, allocations: 0.6775 MB / 0.8876 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.7162, allocations: 54.92 kB / 0.8877 GB, free: 106.5 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.746e-05/0.7163, allocations: 97.11 kB / 0.8877 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.7163, allocations: 28.55 kB / 0.8878 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.7163, allocations: 89.78 kB / 0.8879 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.598e-05/0.7164, allocations: 37.05 kB / 0.8879 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.054e-06/0.7164, allocations: 2.75 kB / 0.8879 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.259e-05/0.7165, allocations: 319.9 kB / 0.8882 GB, free: 106 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.7166, allocations: 31.09 kB / 0.8882 GB, free: 106 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.7167, allocations: 39.06 kB / 0.8883 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001225/0.7169, allocations: 35.98 kB / 0.8883 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.7169, allocations: 0 / 0.8883 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003182/0.7172, allocations: 124.8 kB / 0.8884 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.7172, allocations: 5.375 kB / 0.8884 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.7172, allocations: 8.75 kB / 0.8884 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.7173, allocations: 2.344 kB / 0.8884 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.7174, allocations: 30.39 kB / 0.8885 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.7174, allocations: 5.297 kB / 0.8885 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.465e-05/0.7175, allocations: 7.828 kB / 0.8885 GB, free: 105.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.7175, allocations: 2.109 kB / 0.8885 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.895e-05/0.7176, allocations: 118.2 kB / 0.8886 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.7176, allocations: 11.17 kB / 0.8886 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003888/0.718, allocations: 139.1 kB / 0.8887 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.7181, allocations: 4.016 kB / 0.8887 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.7181, allocations: 5.5 kB / 0.8887 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.7181, allocations: 4.75 kB / 0.8887 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005339/0.7186, allocations: 386.4 kB / 0.8891 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.7186, allocations: 3.344 kB / 0.8891 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001538/0.7188, allocations: 32.41 kB / 0.8892 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.7188, allocations: 3.188 kB / 0.8892 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.7188, allocations: 1.266 kB / 0.8892 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.7188, allocations: 3.953 kB / 0.8892 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.7188, allocations: 0 / 0.8892 GB, free: 105.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005053/0.7193, allocations: 263.1 kB / 0.8894 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.588e-05/0.7194, allocations: 85.12 kB / 0.8895 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.7194, allocations: 4.516 kB / 0.8895 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.7195, allocations: 15.61 kB / 0.8895 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.858e-05/0.7196, allocations: 10.75 kB / 0.8895 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.7196, allocations: 3.406 kB / 0.8895 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.803e-05/0.7196, allocations: 87.39 kB / 0.8896 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9e-08/0.7196, allocations: 1.375 kB / 0.8896 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003098/0.7199, allocations: 40.72 kB / 0.8896 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 (dp_comp,der_dp_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.0007797/0.7207, allocations: 0.8271 MB / 0.8905 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003385/0.7211, allocations: 93.52 kB / 0.8905 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.7211, allocations: 4.062 kB / 0.8905 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.7212, allocations: 48.64 kB / 0.8906 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.0002245/0.7215, allocations: 14.95 kB / 0.8906 GB, free: 104.4 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.7228, allocations: 0.759 MB / 0.8914 GB, free: 103.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.7229, allocations: 0.6948 MB / 0.892 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 6.275e-05/0.723, allocations: 19.45 kB / 0.892 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.791e-05/0.7231, allocations: 22.56 kB / 0.8921 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of SimCode: time 2.1e-07/0.7231, allocations: 0 / 0.8921 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01363/0.7367, allocations: 2.019 MB / 0.894 GB, free: 103 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001521/0.7369, allocations: 233.2 kB / 0.8943 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.411, allocations: 0 / 0.8943 GB, free: 102.8 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)