Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001032/0.001032, allocations: 191 kB / 17.29 MB, free: 5.516 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.299/1.299, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002117/0.002117, allocations: 285.4 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9427/0.9427, allocations: 169.3 MB / 0.4989 GB, free: 4.449 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 98.44 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1486, allocations: 86.96 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002149/0.1508, allocations: 1.278 MB / 0.6828 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009309/0.1517, allocations: 0.6072 MB / 0.6834 GB, free: 5.566 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.602e-05/0.1518, allocations: 0 / 0.6834 GB, free: 5.566 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.678e-05/0.1518, allocations: 3.938 kB / 0.6834 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.863e-05/0.1518, allocations: 0 / 0.6834 GB, free: 5.562 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.1523, allocations: 143.4 kB / 0.6836 GB, free: 5.422 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.817e-05/0.1524, allocations: 19.92 kB / 0.6836 GB, free: 5.402 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.865e-05/0.1524, allocations: 7.922 kB / 0.6836 GB, free: 5.395 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.061e-05/0.1525, allocations: 11.94 kB / 0.6836 GB, free: 5.383 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.687e-05/0.1525, allocations: 11.98 kB / 0.6836 GB, free: 5.371 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.1525, allocations: 4 kB / 0.6836 GB, free: 5.367 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004419/0.153, allocations: 339.4 kB / 0.684 GB, free: 5.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.277e-05/0.153, allocations: 3.938 kB / 0.684 GB, free: 5.031 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.974e-05/0.153, allocations: 7.938 kB / 0.684 GB, free: 5.023 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002278/0.1532, allocations: 151.7 kB / 0.6841 GB, free: 4.875 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1533, allocations: 0 / 0.6841 GB, free: 4.875 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1533, allocations: 0 / 0.6841 GB, free: 4.875 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.1533, allocations: 0 / 0.6841 GB, free: 4.875 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003639/0.1536, allocations: 363.5 kB / 0.6845 GB, free: 4.469 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.1537, allocations: 8.031 kB / 0.6845 GB, free: 4.461 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.1537, allocations: 12.81 kB / 0.6845 GB, free: 4.449 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.1538, allocations: 172.2 kB / 0.6846 GB, free: 4.242 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.077e-06/0.1538, allocations: 384 / 0.6846 GB, free: 4.242 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.1539, allocations: 4.375 kB / 0.6846 GB, free: 4.238 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.548e-05/0.154, allocations: 38.25 kB / 0.6847 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.154, allocations: 192 / 0.6847 GB, free: 4.195 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.154, allocations: 3.938 kB / 0.6847 GB, free: 4.191 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.154, allocations: 7.984 kB / 0.6847 GB, free: 4.184 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.782e-05/0.1541, allocations: 12 kB / 0.6847 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.1542, allocations: 153.7 kB / 0.6848 GB, free: 3.973 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.1544, allocations: 46.55 kB / 0.6849 GB, free: 3.918 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.377e-05/0.1544, allocations: 20.94 kB / 0.6849 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.1544, allocations: 0 / 0.6849 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.302e-05/0.1545, allocations: 38.56 kB / 0.6849 GB, free: 3.848 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 8.21e-07/0.1545, allocations: 0 / 0.6849 GB, free: 3.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.000585/0.1551, allocations: 306.2 kB / 0.6852 GB, free: 3.496 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.654e-05/0.1551, allocations: 55.41 kB / 0.6853 GB, free: 3.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.355e-05/0.1552, allocations: 101.8 kB / 0.6854 GB, free: 3.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.1552, allocations: 25.7 kB / 0.6854 GB, free: 3.289 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.126e-05/0.1552, allocations: 80.14 kB / 0.6855 GB, free: 3.207 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.748e-05/0.1553, allocations: 19.72 kB / 0.6855 GB, free: 3.188 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.411e-05/0.1553, allocations: 29.64 kB / 0.6855 GB, free: 3.152 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.376e-05/0.1554, allocations: 314.8 kB / 0.6858 GB, free: 2.836 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.408e-05/0.1554, allocations: 8 kB / 0.6858 GB, free: 2.828 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.021e-05/0.1555, allocations: 15.92 kB / 0.6859 GB, free: 2.812 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.42e-05/0.1555, allocations: 32.86 kB / 0.6859 GB, free: 2.777 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.1555, allocations: 0 / 0.6859 GB, free: 2.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.154e-05/0.1556, allocations: 65.67 kB / 0.686 GB, free: 2.707 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.1556, allocations: 7.938 kB / 0.686 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.1557, allocations: 4 kB / 0.686 GB, free: 2.695 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.1557, allocations: 4 kB / 0.686 GB, free: 2.691 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.101e-05/0.1557, allocations: 15.92 kB / 0.686 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1557, allocations: 0 / 0.686 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.639e-05/0.1558, allocations: 0 / 0.686 GB, free: 2.676 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.1558, allocations: 8 kB / 0.686 GB, free: 2.668 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 (7): * Single equations (assignments): 7 * 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.655e-05/0.1559, allocations: 109.8 kB / 0.6861 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.45e-05/0.1559, allocations: 15.78 kB / 0.6861 GB, free: 2.535 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001346/0.156, allocations: 69.72 kB / 0.6862 GB, free: 2.457 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.156, allocations: 7.984 kB / 0.6862 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.156, allocations: 0 / 0.6862 GB, free: 2.449 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.156, allocations: 4 kB / 0.6862 GB, free: 2.445 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003116/0.1564, allocations: 315.4 kB / 0.6865 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1564, allocations: 0 / 0.6865 GB, free: 2.078 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.038e-05/0.1564, allocations: 11.94 kB / 0.6865 GB, free: 2.066 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.1565, allocations: 4 kB / 0.6865 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.482e-06/0.1565, allocations: 0 / 0.6865 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.1565, allocations: 3.984 kB / 0.6865 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.1565, allocations: 0.5469 kB / 0.6865 GB, free: 2.059 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.1566, allocations: 180.3 kB / 0.6867 GB, free: 1.863 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.052e-05/0.1567, allocations: 85 kB / 0.6868 GB, free: 1.762 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.1567, allocations: 4.031 kB / 0.6868 GB, free: 1.758 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.251e-05/0.1568, allocations: 4 kB / 0.6868 GB, free: 1.754 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.858e-05/0.1568, allocations: 7.984 kB / 0.6868 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.1568, allocations: 0 / 0.6868 GB, free: 1.746 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.69e-05/0.1569, allocations: 87.33 kB / 0.6869 GB, free: 1.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1569, allocations: 3.938 kB / 0.6869 GB, free: 1.656 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002377/0.1571, allocations: 27.94 kB / 0.6869 GB, free: 1.629 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001836/0.1573, allocations: 115.2 kB / 0.687 GB, free: 1.508 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000105/0.1574, allocations: 35.98 kB / 0.687 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1574, allocations: 0 / 0.687 GB, free: 1.473 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.863e-05/0.1575, allocations: 19.94 kB / 0.6871 GB, free: 1.453 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002244/0.1577, allocations: 20.86 kB / 0.6871 GB, free: 1.434 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004096/0.1581, allocations: 172.4 kB / 0.6872 GB, free: 1.238 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.1584, allocations: 0.6884 MB / 0.6879 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.85e-05/0.1584, allocations: 7.984 kB / 0.6879 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.07e-05/0.1584, allocations: 15.44 kB / 0.6879 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of SimCode: time 1.91e-07/0.1584, allocations: 0 / 0.6879 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of Templates: time 0.2358/0.3943, allocations: 0.6307 MB / 0.6886 GB, free: 17.54 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)