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: "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",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.004352/0.004352, allocations: 97.03 kB / 15.73 MB, free: 6.484 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.001087/0.001087, allocations: 191.7 kB / 16.67 MB, free: 6.391 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.273/1.273, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002093/0.002093, allocations: 283 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8993/0.8993, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 103.8 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1569, allocations: 86.96 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002136/0.1591, allocations: 1.27 MB / 0.7671 GB, free: 7.668 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009161/0.16, allocations: 0.6149 MB / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.574e-05/0.1601, allocations: 0 / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.768e-05/0.1601, allocations: 0 / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.795e-05/0.1601, allocations: 3.938 kB / 0.7677 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000547/0.1607, allocations: 145.5 kB / 0.7679 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.684e-05/0.1608, allocations: 23.92 kB / 0.7679 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.358e-05/0.1608, allocations: 4 kB / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.533e-05/0.1608, allocations: 11.88 kB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.67e-05/0.1609, allocations: 11.98 kB / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.068e-05/0.1609, allocations: 0 / 0.7679 GB, free: 6.855 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004701/0.1614, allocations: 347.3 kB / 0.7683 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.15e-05/0.1614, allocations: 0 / 0.7683 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.086e-05/0.1614, allocations: 7.938 kB / 0.7683 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.1617, allocations: 155.7 kB / 0.7684 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1617, allocations: 4 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.313e-06/0.1617, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.1617, allocations: 4 kB / 0.7684 GB, free: 6.348 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003803/0.1621, allocations: 363 kB / 0.7688 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1621, allocations: 8.625 kB / 0.7688 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.036e-05/0.1622, allocations: 34.75 kB / 0.7688 GB, free: 5.891 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.869e-05/0.1622, allocations: 4.938 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.1623, allocations: 168.3 kB / 0.769 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.1623, allocations: 384 / 0.769 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.1624, allocations: 12.3 kB / 0.769 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.336e-05/0.1625, allocations: 38.25 kB / 0.769 GB, free: 5.629 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.1625, allocations: 7.938 kB / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.1625, allocations: 4 kB / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.1625, allocations: 0 / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.795e-05/0.1625, allocations: 11.94 kB / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001446/0.1627, allocations: 157.7 kB / 0.7692 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001656/0.1629, allocations: 42.61 kB / 0.7692 GB, free: 5.352 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.94e-05/0.1629, allocations: 20.94 kB / 0.7693 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.55e-05/0.1629, allocations: 4 kB / 0.7693 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.163, allocations: 30.56 kB / 0.7693 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.163, allocations: 0 / 0.7693 GB, free: 5.285 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0005727/0.1635, allocations: 314.2 kB / 0.7696 GB, free: 4.926 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.1636, allocations: 55.39 kB / 0.7697 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.565e-05/0.1636, allocations: 93.86 kB / 0.7697 GB, free: 4.758 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.1637, allocations: 25.7 kB / 0.7698 GB, free: 4.727 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.723e-05/0.1637, allocations: 88.14 kB / 0.7698 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.1637, allocations: 23.78 kB / 0.7699 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.1638, allocations: 21.7 kB / 0.7699 GB, free: 4.586 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.1639, allocations: 314.8 kB / 0.7702 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.594e-05/0.1639, allocations: 11.98 kB / 0.7702 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.25e-05/0.1639, allocations: 12 kB / 0.7702 GB, free: 4.246 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.251e-05/0.164, allocations: 28.86 kB / 0.7702 GB, free: 4.215 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.82e-07/0.164, allocations: 4 kB / 0.7702 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.884e-05/0.1641, allocations: 81.72 kB / 0.7703 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.1641, allocations: 8 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1641, allocations: 0 / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1641, allocations: 0 / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.178e-05/0.1642, allocations: 11.98 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.499e-06/0.1642, allocations: 0 / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.085e-05/0.1642, allocations: 8 kB / 0.7704 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-06/0.1642, allocations: 0 / 0.7704 GB, free: 4.098 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 (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 6.394e-05/0.1643, allocations: 110.5 kB / 0.7705 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.1643, allocations: 7.938 kB / 0.7705 GB, free: 3.973 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001271/0.1645, allocations: 78.09 kB / 0.7705 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1645, allocations: 4 kB / 0.7705 GB, free: 3.887 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1645, allocations: 3.938 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1645, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.1648, allocations: 311.4 kB / 0.7708 GB, free: 3.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1648, allocations: 3.984 kB / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-05/0.1649, allocations: 19.92 kB / 0.7709 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.1649, allocations: 4.031 kB / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.1649, allocations: 0 / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.1649, allocations: 0 / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1649, allocations: 0 / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001739/0.1651, allocations: 188.2 kB / 0.771 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.286e-05/0.1651, allocations: 81.09 kB / 0.7711 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.1651, allocations: 8.031 kB / 0.7711 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.956e-05/0.1652, allocations: 4.25 kB / 0.7711 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.862e-05/0.1652, allocations: 7.984 kB / 0.7711 GB, free: 3.172 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.1653, allocations: 4 kB / 0.7712 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.316e-05/0.1653, allocations: 79.28 kB / 0.7712 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1653, allocations: 0 / 0.7712 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002394/0.1655, allocations: 27.88 kB / 0.7713 GB, free: 3.062 MB / 0.5606 GB 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.0004345/0.166, allocations: 0.7332 MB / 0.772 GB, free: 2.301 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 9.83e-05/0.1661, allocations: 35.98 kB / 0.772 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1661, allocations: 0 / 0.772 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.803e-05/0.1661, allocations: 19.94 kB / 0.772 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.1664, allocations: 4 kB / 0.772 GB, free: 2.242 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.1674, allocations: 1.315 MB / 0.7733 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.1676, allocations: 0.6862 MB / 0.774 GB, free: 132 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.281e-05/0.1677, allocations: 12.03 kB / 0.774 GB, free: 120 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.1677, allocations: 19.42 kB / 0.774 GB, free: 100 kB / 0.5606 GB Notification: Performance of SimCode: time 4.91e-07/0.1677, allocations: 0 / 0.774 GB, free: 100 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3046/0.4723, allocations: 1.616 MB / 0.7756 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.222/7.695, allocations: 3.875 kB / 0.7756 GB, free: 14.33 MB / 0.5606 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_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_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)