Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_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.005789/0.005789, allocations: 100 kB / 15.73 MB, free: 6.062 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.00137/0.001371, allocations: 192.9 kB / 16.67 MB, free: 5.973 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8815/0.8815, allocations: 132.2 MB / 422.7 MB, free: 6.559 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 67.67 kB / 0.5809 GB, free: 24.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1465, allocations: 80.2 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002763/0.1493, allocations: 1.469 MB / 0.6606 GB, free: 9.293 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1505, allocations: 0.6343 MB / 0.6612 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.092e-05/0.1505, allocations: 0 / 0.6612 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.113e-05/0.1506, allocations: 3.938 kB / 0.6612 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.918e-05/0.1507, allocations: 3.938 kB / 0.6613 GB, free: 8.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.1513, allocations: 167.3 kB / 0.6614 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.1514, allocations: 51.8 kB / 0.6615 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 6.131e-05/0.1515, allocations: 11.97 kB / 0.6615 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.659e-05/0.1516, allocations: 15.94 kB / 0.6615 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.545e-05/0.1516, allocations: 27.91 kB / 0.6615 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.597e-05/0.1517, allocations: 4 kB / 0.6615 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005651/0.1522, allocations: 347.3 kB / 0.6618 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.034e-05/0.1523, allocations: 11.94 kB / 0.6619 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.091e-05/0.1523, allocations: 31.84 kB / 0.6619 GB, free: 7.992 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.1526, allocations: 182.1 kB / 0.6621 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1527, allocations: 4 kB / 0.6621 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.633e-06/0.1527, allocations: 0 / 0.6621 GB, free: 7.812 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.1527, allocations: 0 / 0.6621 GB, free: 7.812 MB / 0.4981 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.0006566/0.1533, allocations: 401.2 kB / 0.6625 GB, free: 7.375 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.1534, allocations: 8.031 kB / 0.6625 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.124e-05/0.1534, allocations: 42.73 kB / 0.6625 GB, free: 7.316 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.444e-05/0.1535, allocations: 8.891 kB / 0.6625 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.1536, allocations: 160.4 kB / 0.6627 GB, free: 7.113 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.1537, allocations: 16.31 kB / 0.6627 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.041e-05/0.1537, allocations: 8.125 kB / 0.6627 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002453/0.154, allocations: 81.64 kB / 0.6628 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.154, allocations: 7.953 kB / 0.6628 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.154, allocations: 4 kB / 0.6628 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.154, allocations: 0 / 0.6628 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.1543, allocations: 47.95 kB / 0.6628 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005831/0.1549, allocations: 328.6 kB / 0.6631 GB, free: 6.574 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.1552, allocations: 82.53 kB / 0.6632 GB, free: 6.484 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/0.1553, allocations: 24.84 kB / 0.6632 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1553, allocations: 4.156 kB / 0.6632 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.1554, allocations: 42.48 kB / 0.6633 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.1554, allocations: 0 / 0.6633 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001741/0.1571, allocations: 0.65 MB / 0.6639 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.1572, allocations: 51.41 kB / 0.664 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.93e-05/0.1573, allocations: 97.84 kB / 0.6641 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.616e-05/0.1573, allocations: 29.7 kB / 0.6641 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.143e-05/0.1574, allocations: 88.09 kB / 0.6642 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.279e-05/0.1574, allocations: 51.55 kB / 0.6642 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.239e-05/0.1575, allocations: 29.7 kB / 0.6642 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.1576, allocations: 318.8 kB / 0.6646 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001383/0.1577, allocations: 31.97 kB / 0.6646 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.1579, allocations: 31.23 kB / 0.6646 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.1581, allocations: 76.83 kB / 0.6647 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1582, allocations: 0 / 0.6647 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003476/0.1585, allocations: 125.7 kB / 0.6648 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1585, allocations: 4 kB / 0.6648 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.1586, allocations: 0 / 0.6648 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.1586, allocations: 7.938 kB / 0.6648 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.1587, allocations: 27.97 kB / 0.6648 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1587, allocations: 0 / 0.6648 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.672e-05/0.1588, allocations: 8 kB / 0.6648 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.1588, allocations: 4 kB / 0.6649 GB, free: 4.645 MB / 0.4981 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 0.0001043/0.1589, allocations: 118.7 kB / 0.665 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.205e-05/0.159, allocations: 11.94 kB / 0.665 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004134/0.1594, allocations: 133.5 kB / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1594, allocations: 0 / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1594, allocations: 0 / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1594, allocations: 0 / 0.6651 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006574/0.1601, allocations: 382.4 kB / 0.6655 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1601, allocations: 4 kB / 0.6655 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.1603, allocations: 27.98 kB / 0.6655 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1603, allocations: 96 / 0.6655 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.1603, allocations: 7.938 kB / 0.6655 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.1603, allocations: 0 / 0.6655 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1603, allocations: 0 / 0.6655 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005372/0.1609, allocations: 261.3 kB / 0.6658 GB, free: 3.625 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.1609, allocations: 85.05 kB / 0.6658 GB, free: 3.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.856e-05/0.161, allocations: 4.219 kB / 0.6658 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1611, allocations: 8 kB / 0.6659 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.873e-05/0.1611, allocations: 11.97 kB / 0.6659 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.094e-05/0.1611, allocations: 4 kB / 0.6659 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.228e-05/0.1612, allocations: 79.27 kB / 0.6659 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1612, allocations: 0 / 0.6659 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002902/0.1615, allocations: 39.88 kB / 0.666 GB, free: 3.379 MB / 0.4981 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.0009454/0.1624, allocations: 0.8177 MB / 0.6668 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.1628, allocations: 83.39 kB / 0.6669 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1628, allocations: 4 kB / 0.6669 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001513/0.163, allocations: 54.25 kB / 0.6669 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003152/0.1633, allocations: 8 kB / 0.6669 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.1654, allocations: 1.612 MB / 0.6685 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.1658, allocations: 0.6968 MB / 0.6692 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.881e-05/0.1658, allocations: 12.67 kB / 0.6692 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.338e-05/0.1659, allocations: 23.42 kB / 0.6692 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of SimCode: time 6.02e-07/0.1659, allocations: 0 / 0.6692 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02517/0.1911, allocations: 2.314 MB / 0.6715 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.357/8.548, allocations: 7.016 kB / 0.6715 GB, free: 13.8 MB / 0.5137 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)