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.006596/0.006596, allocations: 100.6 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.001615/0.001615, allocations: 189 kB / 16.68 MB, free: 6.367 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.338/1.338, 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.002184/0.002184, allocations: 282.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9756/0.9756, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 88.19 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1389, allocations: 86.98 MB / 0.7659 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002398/0.1413, allocations: 1.464 MB / 0.7673 GB, free: 7.43 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.1424, allocations: 0.631 MB / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.646e-05/0.1425, allocations: 0 / 0.768 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.506e-05/0.1425, allocations: 11.86 kB / 0.768 GB, free: 6.785 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.142e-05/0.1426, allocations: 3.938 kB / 0.768 GB, free: 6.781 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006646/0.1433, allocations: 163.3 kB / 0.7681 GB, free: 6.621 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.992e-05/0.1434, allocations: 51.66 kB / 0.7682 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.638e-05/0.1434, allocations: 4 kB / 0.7682 GB, free: 6.566 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.169e-05/0.1435, allocations: 27.91 kB / 0.7682 GB, free: 6.539 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.177e-05/0.1435, allocations: 23.86 kB / 0.7682 GB, free: 6.516 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.1436, allocations: 4 kB / 0.7682 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004784/0.144, allocations: 347.3 kB / 0.7686 GB, free: 6.172 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.874e-05/0.1441, allocations: 15.98 kB / 0.7686 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.262e-05/0.1441, allocations: 31.8 kB / 0.7686 GB, free: 6.125 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.1444, allocations: 182.8 kB / 0.7688 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1444, allocations: 0 / 0.7688 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1444, allocations: 0 / 0.7688 GB, free: 5.949 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.1444, allocations: 0 / 0.7688 GB, free: 5.949 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.0005444/0.145, allocations: 402.9 kB / 0.7692 GB, free: 5.504 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.145, allocations: 12.03 kB / 0.7692 GB, free: 5.492 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.506e-05/0.1451, allocations: 38.69 kB / 0.7692 GB, free: 5.445 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.1451, allocations: 8.938 kB / 0.7692 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.1452, allocations: 172.3 kB / 0.7694 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.1452, allocations: 8.375 kB / 0.7694 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.1453, allocations: 4.375 kB / 0.7694 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002249/0.1455, allocations: 86.22 kB / 0.7695 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.1455, allocations: 3.938 kB / 0.7695 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.117e-05/0.1455, allocations: 0 / 0.7695 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1455, allocations: 0 / 0.7695 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002283/0.1458, allocations: 55.89 kB / 0.7695 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.1463, allocations: 316.7 kB / 0.7698 GB, free: 4.711 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002779/0.1466, allocations: 90.41 kB / 0.7699 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1467, allocations: 28.84 kB / 0.77 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.1467, allocations: 4 kB / 0.77 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.1468, allocations: 38.55 kB / 0.77 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.1468, allocations: 0 / 0.77 GB, free: 4.531 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.001577/0.1484, allocations: 0.6347 MB / 0.7706 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.1484, allocations: 55.39 kB / 0.7707 GB, free: 3.738 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.791e-05/0.1485, allocations: 109.7 kB / 0.7708 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.1485, allocations: 25.7 kB / 0.7708 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.137e-05/0.1485, allocations: 96.08 kB / 0.7709 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.1486, allocations: 47.59 kB / 0.7709 GB, free: 3.445 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.756e-05/0.1486, allocations: 29.7 kB / 0.771 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.1487, allocations: 318.8 kB / 0.7713 GB, free: 3.09 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.1489, allocations: 27.98 kB / 0.7713 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.149, allocations: 39.91 kB / 0.7713 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.1492, allocations: 68.83 kB / 0.7714 GB, free: 2.953 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1493, allocations: 4 kB / 0.7714 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002964/0.1496, allocations: 116.8 kB / 0.7715 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.1496, allocations: 7.938 kB / 0.7715 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.1496, allocations: 4 kB / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.1496, allocations: 0 / 0.7715 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.1498, allocations: 31.92 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.986e-06/0.1498, allocations: 7.922 kB / 0.7716 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.458e-05/0.1499, allocations: 7.984 kB / 0.7716 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/0.1499, allocations: 4 kB / 0.7716 GB, free: 2.77 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 7.65e-05/0.15, allocations: 118.5 kB / 0.7717 GB, free: 2.645 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/0.15, allocations: 3.953 kB / 0.7717 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003543/0.1503, allocations: 133.5 kB / 0.7718 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1504, allocations: 0 / 0.7718 GB, free: 2.504 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1504, allocations: 3.938 kB / 0.7718 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.1504, allocations: 0 / 0.7718 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005283/0.1509, allocations: 386.7 kB / 0.7722 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1509, allocations: 4 kB / 0.7722 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.1511, allocations: 31.91 kB / 0.7722 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1511, allocations: 3.938 kB / 0.7722 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1511, allocations: 4 kB / 0.7722 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1511, allocations: 3.938 kB / 0.7722 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1511, allocations: 0 / 0.7722 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004685/0.1516, allocations: 247.4 kB / 0.7725 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.183e-05/0.1516, allocations: 81.06 kB / 0.7725 GB, free: 1.664 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.1517, allocations: 7.969 kB / 0.7726 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.1518, allocations: 11.98 kB / 0.7726 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-05/0.1518, allocations: 4 kB / 0.7726 GB, free: 1.641 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.1518, allocations: 7.984 kB / 0.7726 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.37e-05/0.1519, allocations: 79.28 kB / 0.7727 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1519, allocations: 8 kB / 0.7727 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002785/0.1521, allocations: 39.88 kB / 0.7727 GB, free: 1.508 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.0007574/0.1529, allocations: 0.8176 MB / 0.7735 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002994/0.1532, allocations: 91.89 kB / 0.7736 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1532, allocations: 0 / 0.7736 GB, free: 0.5742 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/0.1534, allocations: 43.97 kB / 0.7736 GB, free: 0.5312 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.1537, allocations: 11.28 kB / 0.7736 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.278/0.4317, allocations: 1.598 MB / 0.7752 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001333/0.4319, allocations: 0.6914 MB / 0.7759 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.897e-05/0.432, allocations: 11.64 kB / 0.7759 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.386e-05/0.432, allocations: 25.95 kB / 0.7759 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of SimCode: time 8.51e-07/0.432, allocations: 1.375 kB / 0.7759 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.4539, allocations: 2.355 MB / 0.7782 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.331/7.785, allocations: 12.5 kB / 0.7782 GB, free: 12.62 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)