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: translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001494/0.001494, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001767/0.001767, allocations: 193.5 kB / 16.25 MB, free: 6.617 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.317/1.317, allocations: 222.9 MB / 239.9 MB, free: 4.559 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002149/0.002149, allocations: 282.8 kB / 290.4 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9622/0.9622, allocations: 169.2 MB / 0.4978 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 95.31 kB / 0.5947 GB, free: 28.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1506, allocations: 86.97 MB / 0.6796 GB, free: 1.113 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002402/0.153, allocations: 1.338 MB / 0.6809 GB, free: 15.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000991/0.1541, allocations: 0.6234 MB / 0.6815 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.97e-05/0.1541, allocations: 0 / 0.6815 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.583e-05/0.1541, allocations: 0 / 0.6815 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.097e-05/0.1542, allocations: 3.938 kB / 0.6815 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005415/0.1547, allocations: 137.8 kB / 0.6817 GB, free: 15.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.092e-05/0.1548, allocations: 31.91 kB / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.366e-05/0.1548, allocations: 0 / 0.6817 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.27e-05/0.1549, allocations: 11.94 kB / 0.6817 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.657e-05/0.1549, allocations: 15.92 kB / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.1549, allocations: 0 / 0.6817 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004481/0.1554, allocations: 347.3 kB / 0.6821 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.353e-05/0.1554, allocations: 8 kB / 0.6821 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.408e-05/0.1554, allocations: 15.92 kB / 0.6821 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.1557, allocations: 159.8 kB / 0.6822 GB, free: 14.44 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1557, allocations: 0 / 0.6822 GB, free: 14.44 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1557, allocations: 0 / 0.6822 GB, free: 14.44 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1557, allocations: 0 / 0.6822 GB, free: 14.44 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.0004272/0.1561, allocations: 363.5 kB / 0.6826 GB, free: 14.03 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.1562, allocations: 8.031 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/0.1562, allocations: 8.844 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.1564, allocations: 164.3 kB / 0.6828 GB, free: 13.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/0.1564, allocations: 8.375 kB / 0.6828 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.1564, allocations: 8.312 kB / 0.6828 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.1565, allocations: 50.19 kB / 0.6828 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1565, allocations: 4.188 kB / 0.6828 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1566, allocations: 3.938 kB / 0.6828 GB, free: 13.74 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.1566, allocations: 3.984 kB / 0.6828 GB, free: 13.73 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.088e-05/0.1566, allocations: 16 kB / 0.6829 GB, free: 13.72 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.1568, allocations: 169.6 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001082/0.1569, allocations: 62.5 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.162e-05/0.157, allocations: 32.84 kB / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.157, allocations: 0 / 0.6831 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.157, allocations: 30.56 kB / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.1571, allocations: 0 / 0.6831 GB, free: 13.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001128/0.1582, allocations: 0.5956 MB / 0.6837 GB, free: 12.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.1582, allocations: 59.34 kB / 0.6838 GB, free: 12.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.784e-05/0.1583, allocations: 89.86 kB / 0.6839 GB, free: 12.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.1583, allocations: 33.7 kB / 0.6839 GB, free: 12.46 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.852e-05/0.1584, allocations: 80.14 kB / 0.684 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.1584, allocations: 35.45 kB / 0.684 GB, free: 12.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.1585, allocations: 33.83 kB / 0.684 GB, free: 12.31 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.1586, allocations: 314.8 kB / 0.6843 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.205e-05/0.1586, allocations: 19.98 kB / 0.6844 GB, free: 11.97 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.821e-05/0.1587, allocations: 31.98 kB / 0.6844 GB, free: 11.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.801e-05/0.1588, allocations: 55.55 kB / 0.6844 GB, free: 11.89 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.1588, allocations: 0 / 0.6844 GB, free: 11.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001376/0.1589, allocations: 97.62 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.159, allocations: 6.188 kB / 0.6845 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.159, allocations: 7.984 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.159, allocations: 4 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.1591, allocations: 16 kB / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.1591, allocations: 3.938 kB / 0.6846 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.577e-05/0.1591, allocations: 8 kB / 0.6846 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.1591, allocations: 0 / 0.6846 GB, free: 11.74 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 8.872e-05/0.1592, allocations: 118.5 kB / 0.6847 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.77e-05/0.1593, allocations: 11.84 kB / 0.6847 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001876/0.1595, allocations: 105.6 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1595, allocations: 4 kB / 0.6848 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1595, allocations: 0 / 0.6848 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1595, allocations: 3.938 kB / 0.6848 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.1599, allocations: 354.5 kB / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1599, allocations: 0 / 0.6851 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.16, allocations: 27.92 kB / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.16, allocations: 0 / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.16, allocations: 0 / 0.6852 GB, free: 11.06 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.16, allocations: 3.938 kB / 0.6852 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.16, allocations: 8 kB / 0.6852 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002288/0.1603, allocations: 215.4 kB / 0.6854 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.1603, allocations: 81.14 kB / 0.6855 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.436e-05/0.1603, allocations: 0 / 0.6855 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.752e-05/0.1604, allocations: 4 kB / 0.6855 GB, free: 10.72 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.936e-05/0.1605, allocations: 7.984 kB / 0.6855 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.1605, allocations: 7.938 kB / 0.6855 GB, free: 10.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.448e-05/0.1605, allocations: 83.34 kB / 0.6856 GB, free: 10.62 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1605, allocations: 0 / 0.6856 GB, free: 10.62 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.1608, allocations: 35.98 kB / 0.6856 GB, free: 10.59 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.00019/0.161, allocations: 140.6 kB / 0.6857 GB, free: 10.44 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001388/0.1611, allocations: 67.91 kB / 0.6858 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1611, allocations: 0 / 0.6858 GB, free: 10.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.573e-05/0.1612, allocations: 32.36 kB / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.1614, allocations: 8 kB / 0.6858 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004898/0.1619, allocations: 309.2 kB / 0.6861 GB, free: 10.01 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002264/0.1621, allocations: 0.6885 MB / 0.6868 GB, free: 9.293 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.01e-05/0.1622, allocations: 15.94 kB / 0.6868 GB, free: 9.277 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.1622, allocations: 15.42 kB / 0.6868 GB, free: 9.262 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1622, allocations: 3.938 kB / 0.6868 GB, free: 9.258 MB / 494.1 MB Notification: Performance of Templates: time 0.0029/0.1651, allocations: 0.9352 MB / 0.6877 GB, free: 8.359 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)