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.001016/0.001016, allocations: 106.2 kB / 16.37 MB, free: 6.473 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.001058/0.001058, allocations: 196.9 kB / 17.31 MB, free: 5.824 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.23/1.23, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001982/0.001982, allocations: 277.6 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.887/0.887, allocations: 169.2 MB / 0.4989 GB, free: 4.473 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 95.14 kB / 0.5967 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1463, allocations: 86.98 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002233/0.1485, allocations: 1.278 MB / 0.6829 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00107/0.1496, allocations: 0.611 MB / 0.6835 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.274e-05/0.1497, allocations: 0 / 0.6835 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.919e-05/0.1497, allocations: 4 kB / 0.6835 GB, free: 5.559 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.24e-05/0.1497, allocations: 11.92 kB / 0.6835 GB, free: 5.547 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005267/0.1503, allocations: 147.4 kB / 0.6836 GB, free: 5.402 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.473e-05/0.1504, allocations: 27.86 kB / 0.6836 GB, free: 5.375 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.461e-05/0.1504, allocations: 4 kB / 0.6836 GB, free: 5.371 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.084e-05/0.1504, allocations: 7.984 kB / 0.6837 GB, free: 5.363 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.096e-05/0.1505, allocations: 15.94 kB / 0.6837 GB, free: 5.348 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.1505, allocations: 0 / 0.6837 GB, free: 5.348 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004877/0.151, allocations: 351.3 kB / 0.684 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.346e-05/0.151, allocations: 7.984 kB / 0.684 GB, free: 4.996 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.644e-05/0.1511, allocations: 15.92 kB / 0.684 GB, free: 4.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.1513, allocations: 155.6 kB / 0.6842 GB, free: 4.828 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1513, allocations: 0 / 0.6842 GB, free: 4.828 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1513, allocations: 0 / 0.6842 GB, free: 4.828 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1513, allocations: 0 / 0.6842 GB, free: 4.828 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.0004547/0.1518, allocations: 363.4 kB / 0.6845 GB, free: 4.422 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.1518, allocations: 12.03 kB / 0.6845 GB, free: 4.41 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.759e-05/0.1519, allocations: 12.84 kB / 0.6845 GB, free: 4.398 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.152, allocations: 168.3 kB / 0.6847 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.152, allocations: 8.312 kB / 0.6847 GB, free: 4.188 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.1521, allocations: 4.375 kB / 0.6847 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.1522, allocations: 50.23 kB / 0.6848 GB, free: 4.129 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1522, allocations: 4.188 kB / 0.6848 GB, free: 4.125 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1522, allocations: 3.938 kB / 0.6848 GB, free: 4.121 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.1522, allocations: 0 / 0.6848 GB, free: 4.121 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.961e-05/0.1523, allocations: 23.97 kB / 0.6848 GB, free: 4.098 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001626/0.1524, allocations: 165.7 kB / 0.685 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.775e-05/0.1526, allocations: 58.5 kB / 0.685 GB, free: 3.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.18e-05/0.1526, allocations: 28.84 kB / 0.685 GB, free: 3.789 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.1526, allocations: 4 kB / 0.685 GB, free: 3.785 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.736e-05/0.1526, allocations: 30.56 kB / 0.6851 GB, free: 3.746 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.1527, allocations: 0 / 0.6851 GB, free: 3.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001051/0.1537, allocations: 0.6072 MB / 0.6857 GB, free: 3.047 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.923e-05/0.1537, allocations: 51.41 kB / 0.6857 GB, free: 2.984 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.653e-05/0.1538, allocations: 97.84 kB / 0.6858 GB, free: 2.879 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.1538, allocations: 29.7 kB / 0.6858 GB, free: 2.844 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.058e-05/0.1539, allocations: 84.27 kB / 0.6859 GB, free: 2.758 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.1539, allocations: 39.45 kB / 0.686 GB, free: 2.719 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.154, allocations: 25.72 kB / 0.686 GB, free: 2.688 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.1541, allocations: 318.8 kB / 0.6863 GB, free: 2.367 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.136e-05/0.1541, allocations: 16 kB / 0.6863 GB, free: 2.352 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.881e-05/0.1542, allocations: 23.98 kB / 0.6863 GB, free: 2.328 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.097e-05/0.1543, allocations: 55.92 kB / 0.6864 GB, free: 2.273 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.1543, allocations: 0 / 0.6864 GB, free: 2.273 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001506/0.1544, allocations: 105.6 kB / 0.6865 GB, free: 2.164 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.1545, allocations: 10.34 kB / 0.6865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1545, allocations: 0 / 0.6865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1545, allocations: 0 / 0.6865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1546, allocations: 27.92 kB / 0.6865 GB, free: 2.129 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.1546, allocations: 0 / 0.6865 GB, free: 2.129 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.558e-05/0.1546, allocations: 7.938 kB / 0.6865 GB, free: 2.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.1547, allocations: 4 kB / 0.6865 GB, free: 2.117 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 9.423e-05/0.1548, allocations: 113.8 kB / 0.6866 GB, free: 1.996 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.1548, allocations: 7.844 kB / 0.6866 GB, free: 1.988 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.155, allocations: 109.6 kB / 0.6867 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.155, allocations: 0 / 0.6867 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.155, allocations: 3.938 kB / 0.6867 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.155, allocations: 0 / 0.6867 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.1554, allocations: 358.5 kB / 0.6871 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1554, allocations: 0 / 0.6871 GB, free: 1.461 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.1556, allocations: 16 kB / 0.6871 GB, free: 1.445 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1556, allocations: 4 kB / 0.6871 GB, free: 1.441 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.1556, allocations: 11.92 kB / 0.6871 GB, free: 1.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1556, allocations: 4 kB / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1556, allocations: 0 / 0.6871 GB, free: 1.426 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002519/0.1559, allocations: 219.3 kB / 0.6873 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.544e-05/0.1559, allocations: 77.11 kB / 0.6874 GB, free: 1.102 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.1559, allocations: 4 kB / 0.6874 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-05/0.156, allocations: 8.016 kB / 0.6874 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-05/0.156, allocations: 4 kB / 0.6874 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.1561, allocations: 4 kB / 0.6874 GB, free: 1.082 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.417e-05/0.1561, allocations: 83.34 kB / 0.6875 GB, free: 1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1561, allocations: 0 / 0.6875 GB, free: 1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.1564, allocations: 31.98 kB / 0.6875 GB, free: 0.9688 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.0001948/0.1566, allocations: 139.1 kB / 0.6877 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000143/0.1567, allocations: 59.91 kB / 0.6877 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1567, allocations: 4 kB / 0.6877 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.824e-05/0.1568, allocations: 35.92 kB / 0.6878 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002118/0.157, allocations: 13.88 kB / 0.6878 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004787/0.1575, allocations: 288.9 kB / 0.688 GB, free: 416 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2216/0.3791, allocations: 0.6829 MB / 0.6887 GB, free: 17.54 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.098e-05/0.3792, allocations: 11.55 kB / 0.6887 GB, free: 17.54 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.816e-05/0.3792, allocations: 13.2 kB / 0.6887 GB, free: 17.54 MB / 494.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3792, allocations: 0.8125 kB / 0.6887 GB, free: 17.54 MB / 494.1 MB Notification: Performance of Templates: time 0.003269/0.3825, allocations: 0.9388 MB / 0.6897 GB, free: 17.54 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)