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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.004079/0.00408, allocations: 96.31 kB / 15.73 MB, free: 5.996 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.0009969/0.0009969, allocations: 186 kB / 16.67 MB, free: 5.926 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.275/1.275, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001976/0.001976, allocations: 282.6 kB / 290.8 MB, free: 1.926 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9472/0.9472, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 100.3 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1541, allocations: 86.97 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002305/0.1565, allocations: 1.276 MB / 0.7672 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.1575, allocations: 0.6189 MB / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.987e-05/0.1576, allocations: 0 / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.187e-05/0.1576, allocations: 3.938 kB / 0.7678 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.932e-05/0.1577, allocations: 3.984 kB / 0.7678 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006256/0.1583, allocations: 150 kB / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.091e-05/0.1584, allocations: 35.8 kB / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.053e-05/0.1584, allocations: 0 / 0.7679 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.06e-05/0.1585, allocations: 19.92 kB / 0.768 GB, free: 6.816 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.004e-05/0.1585, allocations: 15.92 kB / 0.768 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.1586, allocations: 0 / 0.768 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005032/0.1591, allocations: 339.4 kB / 0.7683 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.636e-05/0.1591, allocations: 7.969 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.737e-05/0.1591, allocations: 19.88 kB / 0.7683 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.1594, allocations: 151.8 kB / 0.7685 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1594, allocations: 4 kB / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.302e-06/0.1594, allocations: 0 / 0.7685 GB, free: 6.289 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.789e-06/0.1594, allocations: 0 / 0.7685 GB, free: 6.289 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004391/0.1599, allocations: 375.1 kB / 0.7688 GB, free: 5.871 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1599, allocations: 8.031 kB / 0.7688 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.138e-05/0.16, allocations: 38.69 kB / 0.7689 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.16, allocations: 4.938 kB / 0.7689 GB, free: 5.812 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.1601, allocations: 168.3 kB / 0.769 GB, free: 5.609 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.1601, allocations: 8.375 kB / 0.769 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.432e-05/0.1602, allocations: 12.31 kB / 0.7691 GB, free: 5.59 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001198/0.1603, allocations: 50.25 kB / 0.7691 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.1603, allocations: 3.938 kB / 0.7691 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.134e-05/0.1603, allocations: 4 kB / 0.7691 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1603, allocations: 0 / 0.7691 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.267e-05/0.1604, allocations: 23.92 kB / 0.7691 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001765/0.1606, allocations: 165.6 kB / 0.7693 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001009/0.1607, allocations: 58.55 kB / 0.7694 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.14e-05/0.1607, allocations: 28.86 kB / 0.7694 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1608, allocations: 0 / 0.7694 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.1608, allocations: 34.56 kB / 0.7694 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.1608, allocations: 0 / 0.7694 GB, free: 5.152 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001117/0.1619, allocations: 0.5917 MB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.162, allocations: 55.34 kB / 0.77 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.285e-05/0.162, allocations: 101.8 kB / 0.7701 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.1621, allocations: 29.7 kB / 0.7702 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.753e-05/0.1621, allocations: 80.14 kB / 0.7702 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.1621, allocations: 35.78 kB / 0.7703 GB, free: 4.141 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.002e-05/0.1622, allocations: 29.66 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1623, allocations: 327 kB / 0.7706 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.085e-05/0.1624, allocations: 16 kB / 0.7706 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.831e-05/0.1624, allocations: 23.98 kB / 0.7707 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.702e-05/0.1625, allocations: 59.97 kB / 0.7707 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.1625, allocations: 0 / 0.7707 GB, free: 3.68 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001401/0.1627, allocations: 101.6 kB / 0.7708 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/0.1627, allocations: 6.188 kB / 0.7708 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.1627, allocations: 0 / 0.7708 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.172e-05/0.1627, allocations: 3.938 kB / 0.7708 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.1628, allocations: 27.98 kB / 0.7708 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.1628, allocations: 0 / 0.7708 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.596e-05/0.1629, allocations: 4 kB / 0.7709 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.178e-06/0.1629, allocations: 4 kB / 0.7709 GB, free: 3.531 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.051e-05/0.163, allocations: 114.5 kB / 0.771 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.163, allocations: 3.938 kB / 0.771 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/0.1632, allocations: 113.5 kB / 0.7711 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1632, allocations: 0 / 0.7711 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.1632, allocations: 0 / 0.7711 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1632, allocations: 4 kB / 0.7711 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003918/0.1636, allocations: 354.5 kB / 0.7714 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1636, allocations: 3.938 kB / 0.7714 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.1637, allocations: 23.98 kB / 0.7714 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1637, allocations: 0 / 0.7714 GB, free: 2.855 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/0.1637, allocations: 4 kB / 0.7714 GB, free: 2.852 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1637, allocations: 3.938 kB / 0.7715 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1638, allocations: 0 / 0.7715 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002373/0.164, allocations: 231.6 kB / 0.7717 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.164, allocations: 77.11 kB / 0.7717 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.1641, allocations: 7.984 kB / 0.7718 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.1642, allocations: 4 kB / 0.7718 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.839e-05/0.1642, allocations: 7.938 kB / 0.7718 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.1642, allocations: 3.984 kB / 0.7718 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.481e-05/0.1642, allocations: 83.28 kB / 0.7718 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1642, allocations: 0 / 0.7718 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002551/0.1645, allocations: 36.03 kB / 0.7719 GB, free: 2.371 MB / 0.5606 GB 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.0005841/0.1651, allocations: 0.783 MB / 0.7726 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001369/0.1652, allocations: 67.84 kB / 0.7727 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1652, allocations: 0 / 0.7727 GB, free: 1.496 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 4.672e-05/0.1653, allocations: 31.94 kB / 0.7727 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002209/0.1655, allocations: 16.05 kB / 0.7728 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2897/0.4552, allocations: 1.489 MB / 0.7742 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001155/0.4554, allocations: 0.6914 MB / 0.7749 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.495e-05/0.4555, allocations: 8.125 kB / 0.7749 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.4555, allocations: 18.88 kB / 0.7749 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of SimCode: time 1.593e-06/0.4555, allocations: 0.5938 kB / 0.7749 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0188/0.4743, allocations: 2.091 MB / 0.777 GB, free: 13 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.83, allocations: 14 kB / 0.777 GB, free: 13 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)