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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009178/0.0009178, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005916/0.005916, allocations: 171.7 kB / 16.26 MB, free: 6.613 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.329/1.329, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00187/0.001871, allocations: 262.9 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9502/0.9502, allocations: 169.5 MB / 0.5004 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004564/0.0004566, allocations: 14.72 kB / 0.5988 GB, free: 27.86 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1458, allocations: 88.54 MB / 0.6852 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001161/0.147, allocations: 1 MB / 0.6862 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009127/0.1479, allocations: 0.6203 MB / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.415e-05/0.148, allocations: 0 / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.589e-05/0.148, allocations: 3.984 kB / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.681e-05/0.148, allocations: 7.984 kB / 0.6868 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004207/0.1485, allocations: 126 kB / 0.6869 GB, free: 13.22 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.965e-05/0.1485, allocations: 27.92 kB / 0.687 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.751e-05/0.1486, allocations: 4 kB / 0.687 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.488e-05/0.1486, allocations: 11.92 kB / 0.687 GB, free: 13.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.041e-05/0.1487, allocations: 16.42 kB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.222e-05/0.1487, allocations: 4.531 kB / 0.687 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004481/0.1491, allocations: 344.5 kB / 0.6873 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.34e-05/0.1492, allocations: 4 kB / 0.6873 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.674e-05/0.1492, allocations: 41.62 kB / 0.6874 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.1494, allocations: 151.9 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1495, allocations: 5.5 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1495, allocations: 3.938 kB / 0.6875 GB, free: 12.61 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.1495, allocations: 0 / 0.6875 GB, free: 12.61 MB / 494.1 MB 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.0003502/0.1498, allocations: 356.2 kB / 0.6879 GB, free: 12.21 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.1499, allocations: 9.75 kB / 0.6879 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.1499, allocations: 42.73 kB / 0.6879 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.568e-05/0.15, allocations: 8.844 kB / 0.6879 GB, free: 12.15 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.913e-05/0.1501, allocations: 164.3 kB / 0.6881 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.1501, allocations: 8.984 kB / 0.6881 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.1501, allocations: 4.375 kB / 0.6881 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001058/0.1502, allocations: 49.53 kB / 0.6882 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1502, allocations: 7.875 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.908e-06/0.1502, allocations: 4 kB / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.1503, allocations: 0 / 0.6882 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.846e-05/0.1503, allocations: 23.92 kB / 0.6882 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.1505, allocations: 165.7 kB / 0.6883 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.612e-05/0.1506, allocations: 56.34 kB / 0.6884 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.309e-05/0.1506, allocations: 32.83 kB / 0.6884 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.629e-05/0.1506, allocations: 0 / 0.6884 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.1507, allocations: 35.28 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.12e-07/0.1507, allocations: 0.875 kB / 0.6885 GB, free: 11.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009988/0.1517, allocations: 0.5936 MB / 0.689 GB, free: 10.82 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.544e-05/0.1517, allocations: 52.06 kB / 0.6891 GB, free: 10.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.471e-05/0.1518, allocations: 101.9 kB / 0.6892 GB, free: 10.64 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.574e-05/0.1518, allocations: 25.7 kB / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.193e-05/0.1519, allocations: 80.14 kB / 0.6893 GB, free: 10.53 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.884e-05/0.1519, allocations: 43.44 kB / 0.6893 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.497e-05/0.1519, allocations: 17.72 kB / 0.6893 GB, free: 10.46 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.494e-05/0.152, allocations: 318.8 kB / 0.6897 GB, free: 10.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.978e-05/0.1521, allocations: 23.98 kB / 0.6897 GB, free: 10.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.203e-05/0.1521, allocations: 18.62 kB / 0.6897 GB, free: 10.11 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.145e-05/0.1522, allocations: 60.97 kB / 0.6898 GB, free: 10.04 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.1522, allocations: 0 / 0.6898 GB, free: 10.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000133/0.1524, allocations: 105.6 kB / 0.6899 GB, free: 9.934 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.1524, allocations: 4 kB / 0.6899 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.1524, allocations: 0 / 0.6899 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.556e-06/0.1524, allocations: 0 / 0.6899 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.575e-05/0.1525, allocations: 23.98 kB / 0.6899 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.028e-06/0.1525, allocations: 96 / 0.6899 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.24e-05/0.1525, allocations: 3.938 kB / 0.6899 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.1526, allocations: 4 kB / 0.6899 GB, free: 9.898 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.983e-05/0.1526, allocations: 115.2 kB / 0.69 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.554e-05/0.1527, allocations: 15.78 kB / 0.69 GB, free: 9.762 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001815/0.1529, allocations: 105.6 kB / 0.6901 GB, free: 9.652 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.1529, allocations: 4 kB / 0.6901 GB, free: 9.648 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1529, allocations: 0 / 0.6901 GB, free: 9.648 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1529, allocations: 0 / 0.6901 GB, free: 9.648 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003765/0.1533, allocations: 350.5 kB / 0.6905 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1533, allocations: 7.938 kB / 0.6905 GB, free: 9.242 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.1534, allocations: 19.98 kB / 0.6905 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1534, allocations: 0 / 0.6905 GB, free: 9.223 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.1534, allocations: 8 kB / 0.6905 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1534, allocations: 3.984 kB / 0.6905 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1534, allocations: 7.984 kB / 0.6905 GB, free: 9.203 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.1537, allocations: 223 kB / 0.6907 GB, free: 8.973 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.339e-05/0.1537, allocations: 81.14 kB / 0.6908 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.1537, allocations: 4.062 kB / 0.6908 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.183e-05/0.1538, allocations: 4 kB / 0.6908 GB, free: 8.867 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.745e-05/0.1538, allocations: 7.984 kB / 0.6908 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.805e-06/0.1539, allocations: 4 kB / 0.6908 GB, free: 8.855 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.976e-05/0.1539, allocations: 83.22 kB / 0.6909 GB, free: 8.773 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1539, allocations: 0 / 0.6909 GB, free: 8.773 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002484/0.1541, allocations: 35.94 kB / 0.6909 GB, free: 8.738 MB / 494.1 MB 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 (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.000524/0.1547, allocations: 0.7905 MB / 0.6917 GB, free: 7.922 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000121/0.1548, allocations: 67.84 kB / 0.6918 GB, free: 7.855 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1548, allocations: 0 / 0.6918 GB, free: 7.855 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.732e-05/0.1549, allocations: 35.92 kB / 0.6918 GB, free: 7.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002059/0.1551, allocations: 4.75 kB / 0.6918 GB, free: 7.816 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.1564, allocations: 1.547 MB / 0.6933 GB, free: 6.191 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002122/0.1566, allocations: 0.6887 MB / 0.694 GB, free: 5.477 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.973e-05/0.1567, allocations: 4 kB / 0.694 GB, free: 5.473 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.1567, allocations: 19.44 kB / 0.694 GB, free: 5.453 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1567, allocations: 4 kB / 0.694 GB, free: 5.449 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01193/0.1686, allocations: 1.85 MB / 0.6958 GB, free: 3.812 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/0.1689, allocations: 256.4 kB / 0.6961 GB, free: 3.559 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/1.752, allocations: 4 kB / 0.6961 GB, free: 3.555 MB / 494.1 MB (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/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)