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.001117/0.001118, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.00117/0.00117, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.252/1.252, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001998/0.001998, allocations: 292.5 kB / 291.3 MB, free: 14.53 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8729/0.8729, allocations: 169.3 MB / 0.4988 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 103.9 kB / 0.5959 GB, free: 15.1 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1508, allocations: 86.97 MB / 0.6808 GB, free: 8.129 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002363/0.1532, allocations: 1.27 MB / 0.6821 GB, free: 6.844 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009433/0.1541, allocations: 0.615 MB / 0.6827 GB, free: 6.227 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.607e-05/0.1542, allocations: 0 / 0.6827 GB, free: 6.227 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.1542, allocations: 4 kB / 0.6827 GB, free: 6.223 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.52e-05/0.1543, allocations: 3.938 kB / 0.6827 GB, free: 6.219 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005782/0.1549, allocations: 147.4 kB / 0.6828 GB, free: 6.074 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.637e-05/0.1549, allocations: 27.92 kB / 0.6829 GB, free: 6.047 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.602e-05/0.155, allocations: 0 / 0.6829 GB, free: 6.047 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.446e-05/0.155, allocations: 15.92 kB / 0.6829 GB, free: 6.031 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.118e-05/0.155, allocations: 19.86 kB / 0.6829 GB, free: 6.012 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.045e-05/0.1551, allocations: 0 / 0.6829 GB, free: 6.012 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.1555, allocations: 347.3 kB / 0.6832 GB, free: 5.672 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.1556, allocations: 15.98 kB / 0.6832 GB, free: 5.656 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.317e-05/0.1556, allocations: 7.938 kB / 0.6833 GB, free: 5.648 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002654/0.1559, allocations: 159.8 kB / 0.6834 GB, free: 5.492 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1559, allocations: 4 kB / 0.6834 GB, free: 5.488 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1559, allocations: 0 / 0.6834 GB, free: 5.488 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1559, allocations: 0 / 0.6834 GB, free: 5.488 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.0003717/0.1563, allocations: 359.5 kB / 0.6838 GB, free: 5.086 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.1563, allocations: 8.031 kB / 0.6838 GB, free: 5.078 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.781e-05/0.1563, allocations: 8.844 kB / 0.6838 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.1565, allocations: 172.3 kB / 0.6839 GB, free: 4.863 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.139e-05/0.1565, allocations: 4.375 kB / 0.6839 GB, free: 4.859 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.1565, allocations: 8.359 kB / 0.6839 GB, free: 4.852 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.1566, allocations: 54.23 kB / 0.684 GB, free: 4.793 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.1566, allocations: 192 / 0.684 GB, free: 4.793 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1567, allocations: 3.938 kB / 0.684 GB, free: 4.789 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.1567, allocations: 3.938 kB / 0.684 GB, free: 4.785 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.917e-05/0.1567, allocations: 19.98 kB / 0.684 GB, free: 4.766 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000164/0.1569, allocations: 161.7 kB / 0.6842 GB, free: 4.559 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.616e-05/0.157, allocations: 62.5 kB / 0.6842 GB, free: 4.488 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.083e-05/0.157, allocations: 32.84 kB / 0.6843 GB, free: 4.453 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.577e-05/0.1571, allocations: 0 / 0.6843 GB, free: 4.453 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.1571, allocations: 30.56 kB / 0.6843 GB, free: 4.414 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 8.11e-07/0.1571, allocations: 0 / 0.6843 GB, free: 4.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.00109/0.1582, allocations: 0.5994 MB / 0.6849 GB, free: 3.723 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.995e-05/0.1582, allocations: 55.41 kB / 0.6849 GB, free: 3.656 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.225e-05/0.1583, allocations: 89.86 kB / 0.685 GB, free: 3.559 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.1583, allocations: 33.7 kB / 0.6851 GB, free: 3.52 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.843e-05/0.1584, allocations: 84.25 kB / 0.6851 GB, free: 3.434 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.1584, allocations: 39.45 kB / 0.6852 GB, free: 3.395 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.746e-05/0.1585, allocations: 29.7 kB / 0.6852 GB, free: 3.359 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.988e-05/0.1586, allocations: 314.8 kB / 0.6855 GB, free: 3.043 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.096e-05/0.1586, allocations: 23.98 kB / 0.6855 GB, free: 3.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.011e-05/0.1587, allocations: 36.02 kB / 0.6856 GB, free: 2.984 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.186e-05/0.1587, allocations: 55.92 kB / 0.6856 GB, free: 2.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.1587, allocations: 0 / 0.6856 GB, free: 2.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001489/0.1589, allocations: 97.61 kB / 0.6857 GB, free: 2.828 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.1589, allocations: 10.03 kB / 0.6857 GB, free: 2.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.1589, allocations: 4 kB / 0.6857 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.1589, allocations: 0 / 0.6857 GB, free: 2.816 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.864e-05/0.1591, allocations: 19.94 kB / 0.6857 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.1591, allocations: 3.984 kB / 0.6857 GB, free: 2.793 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.608e-05/0.1591, allocations: 8 kB / 0.6857 GB, free: 2.785 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.111e-06/0.1591, allocations: 0 / 0.6857 GB, free: 2.785 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.58e-05/0.1592, allocations: 113.8 kB / 0.6859 GB, free: 2.664 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.1592, allocations: 11.84 kB / 0.6859 GB, free: 2.652 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000176/0.1594, allocations: 105.5 kB / 0.686 GB, free: 2.539 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.1594, allocations: 4 kB / 0.686 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1594, allocations: 0 / 0.686 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.1594, allocations: 3.984 kB / 0.686 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000366/0.1598, allocations: 346.5 kB / 0.6863 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1598, allocations: 0 / 0.6863 GB, free: 2.137 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.1599, allocations: 23.94 kB / 0.6863 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.1599, allocations: 3.938 kB / 0.6863 GB, free: 2.109 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.1599, allocations: 0 / 0.6863 GB, free: 2.109 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.16, allocations: 4 kB / 0.6863 GB, free: 2.105 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.16, allocations: 7.984 kB / 0.6863 GB, free: 2.098 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002285/0.1602, allocations: 215.4 kB / 0.6866 GB, free: 1.871 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.1602, allocations: 81.14 kB / 0.6866 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.1603, allocations: 0 / 0.6866 GB, free: 1.773 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.41e-05/0.1603, allocations: 4 kB / 0.6866 GB, free: 1.77 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.836e-05/0.1604, allocations: 11.92 kB / 0.6866 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.1604, allocations: 8.062 kB / 0.6867 GB, free: 1.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.461e-05/0.1604, allocations: 79.28 kB / 0.6867 GB, free: 1.672 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.285e-06/0.1604, allocations: 0 / 0.6867 GB, free: 1.672 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002559/0.1607, allocations: 43.92 kB / 0.6868 GB, free: 1.629 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.0001889/0.1609, allocations: 135.1 kB / 0.6869 GB, free: 1.488 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.161, allocations: 75.84 kB / 0.687 GB, free: 1.414 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.161, allocations: 0 / 0.687 GB, free: 1.414 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.619e-05/0.1611, allocations: 27.98 kB / 0.687 GB, free: 1.387 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.1613, allocations: 12.09 kB / 0.687 GB, free: 1.375 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005106/0.1618, allocations: 303.4 kB / 0.6873 GB, free: 1.047 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000216/0.1621, allocations: 0.6846 MB / 0.688 GB, free: 344 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.523e-05/0.1621, allocations: 15.44 kB / 0.688 GB, free: 332 kB / 494.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1621, allocations: 0 / 0.688 GB, free: 332 kB / 494.1 MB Notification: Performance of Templates: time 0.2213/0.3834, allocations: 1.121 MB / 0.6891 GB, free: 17.39 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)