Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.005044/0.005044, allocations: 96.06 kB / 15.73 MB, free: 6.055 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.001263/0.001263, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002401/0.002401, allocations: 282.8 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9816/0.9816, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002592/0.002592, allocations: 104.3 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.156, allocations: 86.97 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002496/0.1585, allocations: 1.468 MB / 0.7673 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1596, allocations: 0.6272 MB / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.029e-05/0.1596, allocations: 3.938 kB / 0.768 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.75e-05/0.1596, allocations: 7.938 kB / 0.768 GB, free: 6.805 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.215e-05/0.1597, allocations: 11.86 kB / 0.768 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000532/0.1602, allocations: 163.3 kB / 0.7681 GB, free: 6.633 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.393e-05/0.1603, allocations: 47.67 kB / 0.7682 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.397e-05/0.1604, allocations: 7.984 kB / 0.7682 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.54e-05/0.1604, allocations: 15.94 kB / 0.7682 GB, free: 6.562 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.552e-05/0.1605, allocations: 39.83 kB / 0.7682 GB, free: 6.523 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.451e-05/0.1605, allocations: 4 kB / 0.7682 GB, free: 6.52 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005115/0.161, allocations: 347.3 kB / 0.7686 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.268e-05/0.1611, allocations: 15.97 kB / 0.7686 GB, free: 6.164 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.32e-05/0.1611, allocations: 23.88 kB / 0.7686 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000292/0.1614, allocations: 179.6 kB / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1614, allocations: 0 / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.513e-06/0.1614, allocations: 0 / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.1614, allocations: 0 / 0.7688 GB, free: 5.965 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005822/0.162, allocations: 406.9 kB / 0.7692 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1621, allocations: 8.031 kB / 0.7692 GB, free: 5.508 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.932e-05/0.1621, allocations: 42.73 kB / 0.7692 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.1622, allocations: 4.938 kB / 0.7692 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001306/0.1623, allocations: 172.2 kB / 0.7694 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.48e-05/0.1623, allocations: 4.375 kB / 0.7694 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.1623, allocations: 8.375 kB / 0.7694 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002387/0.1626, allocations: 86.19 kB / 0.7695 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1626, allocations: 7.938 kB / 0.7695 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.005e-05/0.1626, allocations: 4 kB / 0.7695 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1626, allocations: 0 / 0.7695 GB, free: 5.133 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002262/0.1629, allocations: 47.97 kB / 0.7695 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005325/0.1634, allocations: 328.6 kB / 0.7699 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002721/0.1637, allocations: 82.53 kB / 0.7699 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.1638, allocations: 32.78 kB / 0.77 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.1638, allocations: 0 / 0.77 GB, free: 4.59 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.1639, allocations: 34.56 kB / 0.77 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.1639, allocations: 0 / 0.77 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001606/0.1655, allocations: 0.6386 MB / 0.7706 GB, free: 3.816 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.1655, allocations: 59.34 kB / 0.7707 GB, free: 3.746 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.408e-05/0.1656, allocations: 109.8 kB / 0.7708 GB, free: 3.629 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.1657, allocations: 25.7 kB / 0.7708 GB, free: 3.598 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.827e-05/0.1657, allocations: 92.09 kB / 0.7709 GB, free: 3.504 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.166e-05/0.1658, allocations: 47.58 kB / 0.7709 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.1658, allocations: 29.7 kB / 0.771 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000137/0.166, allocations: 318.8 kB / 0.7713 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.1661, allocations: 27.97 kB / 0.7713 GB, free: 3.074 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/0.1662, allocations: 34.61 kB / 0.7713 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002471/0.1665, allocations: 80.86 kB / 0.7714 GB, free: 2.961 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1665, allocations: 3.938 kB / 0.7714 GB, free: 2.957 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003095/0.1668, allocations: 113.8 kB / 0.7715 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.1668, allocations: 6.344 kB / 0.7715 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1668, allocations: 0 / 0.7715 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.1669, allocations: 4 kB / 0.7715 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.167, allocations: 27.97 kB / 0.7716 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.167, allocations: 7.938 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.027e-05/0.1671, allocations: 4 kB / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.296e-05/0.1671, allocations: 8 kB / 0.7716 GB, free: 2.785 MB / 0.5606 GB 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.828e-05/0.1672, allocations: 114.4 kB / 0.7717 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.37e-05/0.1672, allocations: 11.94 kB / 0.7717 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003656/0.1676, allocations: 125.5 kB / 0.7718 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1676, allocations: 4 kB / 0.7718 GB, free: 2.52 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1676, allocations: 3.938 kB / 0.7718 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1676, allocations: 0 / 0.7718 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005774/0.1682, allocations: 382.5 kB / 0.7722 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1682, allocations: 0 / 0.7722 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.1684, allocations: 24.17 kB / 0.7722 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.284e-06/0.1684, allocations: 7.938 kB / 0.7722 GB, free: 2.055 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.1684, allocations: 7.938 kB / 0.7722 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1684, allocations: 4 kB / 0.7722 GB, free: 2.043 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.1684, allocations: 11.97 kB / 0.7722 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.1689, allocations: 250.5 kB / 0.7725 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.558e-05/0.169, allocations: 81.06 kB / 0.7726 GB, free: 1.676 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.178e-05/0.169, allocations: 11.97 kB / 0.7726 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.1691, allocations: 4 kB / 0.7726 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.949e-05/0.1692, allocations: 12.05 kB / 0.7726 GB, free: 1.648 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.567e-06/0.1692, allocations: 7.938 kB / 0.7726 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.237e-05/0.1692, allocations: 83.27 kB / 0.7727 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1692, allocations: 0 / 0.7727 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002658/0.1695, allocations: 39.88 kB / 0.7727 GB, free: 1.52 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.0008716/0.1704, allocations: 0.8176 MB / 0.7735 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003191/0.1707, allocations: 87.83 kB / 0.7736 GB, free: 0.5898 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1707, allocations: 0 / 0.7736 GB, free: 0.5898 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.1709, allocations: 43.97 kB / 0.7736 GB, free: 0.5469 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.1712, allocations: 11.06 kB / 0.7736 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.268/0.4392, allocations: 1.595 MB / 0.7752 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000123/0.4393, allocations: 0.6938 MB / 0.7759 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.774e-05/0.4394, allocations: 10.12 kB / 0.7759 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.4395, allocations: 25.11 kB / 0.7759 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of SimCode: time 6.11e-07/0.4395, allocations: 1.531 kB / 0.7759 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.4656, allocations: 2.353 MB / 0.7782 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/8.068, allocations: 4.938 kB / 0.7782 GB, free: 12.63 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)