Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.005248/0.005248, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.00123/0.00123, allocations: 194.1 kB / 16.67 MB, free: 5.969 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002254/0.002254, allocations: 290.3 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9449/0.9449, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 91.86 kB / 0.681 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.149, allocations: 86.98 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002037/0.1511, allocations: 1.278 MB / 0.7671 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008792/0.152, allocations: 0.6111 MB / 0.7677 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.229e-05/0.152, allocations: 0 / 0.7677 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.497e-05/0.152, allocations: 0 / 0.7677 GB, free: 7.047 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.779e-05/0.1521, allocations: 3.938 kB / 0.7678 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005222/0.1526, allocations: 147.4 kB / 0.7679 GB, free: 6.898 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 5.426e-05/0.1527, allocations: 19.92 kB / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.519e-05/0.1527, allocations: 0 / 0.7679 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.551e-05/0.1528, allocations: 15.92 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.347e-05/0.1528, allocations: 11.98 kB / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.938e-06/0.1528, allocations: 0 / 0.7679 GB, free: 6.852 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004541/0.1533, allocations: 343.3 kB / 0.7683 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.287e-05/0.1533, allocations: 7.938 kB / 0.7683 GB, free: 6.508 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.55e-05/0.1533, allocations: 7.984 kB / 0.7683 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002374/0.1536, allocations: 151.8 kB / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1536, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1536, allocations: 0 / 0.7684 GB, free: 6.352 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.1536, allocations: 0 / 0.7684 GB, free: 6.352 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.000365/0.154, allocations: 367 kB / 0.7688 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.154, allocations: 8.031 kB / 0.7688 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.128e-05/0.1541, allocations: 38.67 kB / 0.7688 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.623e-05/0.1541, allocations: 8.875 kB / 0.7688 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.229e-05/0.1542, allocations: 168.3 kB / 0.769 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.1542, allocations: 384 / 0.769 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.942e-05/0.1542, allocations: 4.375 kB / 0.769 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.557e-05/0.1543, allocations: 46.19 kB / 0.769 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.1544, allocations: 3.938 kB / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1544, allocations: 0 / 0.769 GB, free: 5.617 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.1544, allocations: 4 kB / 0.769 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.561e-05/0.1544, allocations: 7.984 kB / 0.7691 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001455/0.1546, allocations: 161.7 kB / 0.7692 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001748/0.1547, allocations: 46.48 kB / 0.7692 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.206e-05/0.1548, allocations: 16.86 kB / 0.7693 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.1548, allocations: 0 / 0.7693 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.1548, allocations: 34.56 kB / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.1548, allocations: 0 / 0.7693 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.0005735/0.1554, allocations: 318.3 kB / 0.7696 GB, free: 4.918 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.1555, allocations: 51.41 kB / 0.7697 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.221e-05/0.1555, allocations: 97.86 kB / 0.7697 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.1555, allocations: 25.7 kB / 0.7698 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 2.661e-05/0.1556, allocations: 80.14 kB / 0.7698 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.1556, allocations: 31.78 kB / 0.7699 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.336e-05/0.1557, allocations: 17.72 kB / 0.7699 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 8.185e-05/0.1557, allocations: 314.8 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.537e-05/0.1558, allocations: 11.98 kB / 0.7702 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.161e-05/0.1558, allocations: 15.94 kB / 0.7702 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.654e-05/0.1559, allocations: 32.8 kB / 0.7703 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.1559, allocations: 0 / 0.7703 GB, free: 4.203 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.287e-05/0.156, allocations: 69.58 kB / 0.7703 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.156, allocations: 8 kB / 0.7703 GB, free: 4.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.156, allocations: 4 kB / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.156, allocations: 0 / 0.7703 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.45e-05/0.1561, allocations: 11.98 kB / 0.7703 GB, free: 4.105 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.1561, allocations: 4.062 kB / 0.7703 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.96e-05/0.1561, allocations: 4 kB / 0.7703 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.1561, allocations: 0 / 0.7703 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.729e-05/0.1562, allocations: 122.4 kB / 0.7705 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.977e-05/0.1562, allocations: 3.938 kB / 0.7705 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001274/0.1563, allocations: 69.64 kB / 0.7705 GB, free: 3.891 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1564, allocations: 8 kB / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1564, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1564, allocations: 0 / 0.7705 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.1567, allocations: 315.3 kB / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.1567, allocations: 0 / 0.7708 GB, free: 3.516 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.559e-05/0.1568, allocations: 15.98 kB / 0.7709 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1568, allocations: 0 / 0.7709 GB, free: 3.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.1568, allocations: 4 kB / 0.7709 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1568, allocations: 0 / 0.7709 GB, free: 3.496 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1568, allocations: 8.031 kB / 0.7709 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/0.157, allocations: 180.8 kB / 0.771 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/0.157, allocations: 85.12 kB / 0.7711 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.208e-05/0.157, allocations: 0 / 0.7711 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.821e-05/0.1571, allocations: 0 / 0.7711 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.638e-05/0.1571, allocations: 8.5 kB / 0.7711 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.1572, allocations: 8.062 kB / 0.7711 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.064e-05/0.1572, allocations: 83.27 kB / 0.7712 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1572, allocations: 0 / 0.7712 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002437/0.1574, allocations: 27.81 kB / 0.7712 GB, free: 3.066 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0004825/0.1579, allocations: 0.7446 MB / 0.772 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001108/0.1581, allocations: 35.92 kB / 0.772 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1581, allocations: 0 / 0.772 GB, free: 2.258 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.653e-05/0.1581, allocations: 12 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.000217/0.1583, allocations: 5.219 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.001098/0.1594, allocations: 1.321 MB / 0.7733 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.1596, allocations: 0.6807 MB / 0.774 GB, free: 132 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.318e-05/0.1597, allocations: 4 kB / 0.774 GB, free: 128 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.1597, allocations: 23.36 kB / 0.774 GB, free: 104 kB / 0.5606 GB Notification: Performance of SimCode: time 4.31e-07/0.1597, allocations: 4 kB / 0.774 GB, free: 100 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3046/0.4643, allocations: 1.647 MB / 0.7756 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.247/7.712, allocations: 3.938 kB / 0.7756 GB, free: 14.36 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_m_flow_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)