Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_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.008313/0.008312, allocations: 97.92 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.002011/0.002011, allocations: 194.8 kB / 16.68 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.421/1.421, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8544/0.8544, allocations: 135.1 MB / 425.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 66.39 kB / 0.5851 GB, free: 22.09 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1494, allocations: 80.92 MB / 0.6642 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.00257/0.152, allocations: 1.273 MB / 0.6654 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001094/0.1531, allocations: 0.6075 MB / 0.666 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.895e-05/0.1531, allocations: 0 / 0.666 GB, free: 4.496 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.1532, allocations: 3.938 kB / 0.666 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.978e-05/0.1532, allocations: 3.984 kB / 0.666 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006653/0.1539, allocations: 154.4 kB / 0.6661 GB, free: 4.34 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.703e-05/0.154, allocations: 15.94 kB / 0.6662 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.068e-05/0.154, allocations: 0 / 0.6662 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.276e-05/0.1541, allocations: 15.92 kB / 0.6662 GB, free: 4.309 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.18e-05/0.1541, allocations: 11.92 kB / 0.6662 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.561e-05/0.1542, allocations: 4 kB / 0.6662 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000513/0.1547, allocations: 339.3 kB / 0.6665 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.394e-05/0.1547, allocations: 7.922 kB / 0.6665 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.1547, allocations: 11.98 kB / 0.6665 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.155, allocations: 151.7 kB / 0.6667 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1551, allocations: 0 / 0.6667 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.863e-06/0.1551, allocations: 4 kB / 0.6667 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.1551, allocations: 0 / 0.6667 GB, free: 3.789 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004864/0.1556, allocations: 363.1 kB / 0.667 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1556, allocations: 9.109 kB / 0.667 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.413e-05/0.1556, allocations: 30.75 kB / 0.6671 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.199e-05/0.1557, allocations: 4.938 kB / 0.6671 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.1558, allocations: 168.3 kB / 0.6672 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.1558, allocations: 8.312 kB / 0.6672 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.228e-05/0.1559, allocations: 8.125 kB / 0.6672 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001032/0.156, allocations: 41.69 kB / 0.6673 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.156, allocations: 4 kB / 0.6673 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.156, allocations: 0 / 0.6673 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.156, allocations: 0 / 0.6673 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.215e-05/0.1561, allocations: 7.984 kB / 0.6673 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001764/0.1562, allocations: 161.7 kB / 0.6674 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.1564, allocations: 42.5 kB / 0.6675 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.739e-05/0.1565, allocations: 28.78 kB / 0.6675 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.955e-05/0.1565, allocations: 0 / 0.6675 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.1565, allocations: 30.56 kB / 0.6675 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 9.12e-07/0.1565, allocations: 0 / 0.6675 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0006947/0.1572, allocations: 314.4 kB / 0.6678 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.1573, allocations: 51.41 kB / 0.6679 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.67e-05/0.1574, allocations: 97.86 kB / 0.668 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.1574, allocations: 29.7 kB / 0.668 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.439e-05/0.1574, allocations: 80.14 kB / 0.6681 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/0.1575, allocations: 27.78 kB / 0.6681 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.1575, allocations: 17.72 kB / 0.6681 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1576, allocations: 318.8 kB / 0.6684 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.832e-05/0.1577, allocations: 11.94 kB / 0.6685 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.255e-05/0.1577, allocations: 12 kB / 0.6685 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.094e-05/0.1578, allocations: 32.84 kB / 0.6685 GB, free: 1.656 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1578, allocations: 7.938 kB / 0.6685 GB, free: 1.648 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001018/0.1579, allocations: 61.69 kB / 0.6686 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.1579, allocations: 9.719 kB / 0.6686 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.1579, allocations: 3.984 kB / 0.6686 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.158, allocations: 3.938 kB / 0.6686 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.555e-05/0.158, allocations: 11.94 kB / 0.6686 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.158, allocations: 4 kB / 0.6686 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.115e-05/0.1581, allocations: 4.062 kB / 0.6686 GB, free: 1.547 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.1581, allocations: 0 / 0.6686 GB, free: 1.547 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 (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 9.714e-05/0.1582, allocations: 123.1 kB / 0.6687 GB, free: 1.418 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.1582, allocations: 3.953 kB / 0.6687 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001455/0.1583, allocations: 73.86 kB / 0.6688 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.1583, allocations: 7.938 kB / 0.6688 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1584, allocations: 0 / 0.6688 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.1584, allocations: 0 / 0.6688 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003521/0.1587, allocations: 311.4 kB / 0.6691 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1587, allocations: 0 / 0.6691 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.851e-05/0.1588, allocations: 24.02 kB / 0.6691 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1588, allocations: 0 / 0.6691 GB, free: 0.9414 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.1588, allocations: 3.938 kB / 0.6691 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.1588, allocations: 0 / 0.6691 GB, free: 0.9375 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1589, allocations: 4 kB / 0.6691 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002064/0.1591, allocations: 180.3 kB / 0.6693 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-05/0.1591, allocations: 85.09 kB / 0.6694 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.1591, allocations: 64 / 0.6694 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.385e-05/0.1592, allocations: 4 kB / 0.6694 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.671e-05/0.1593, allocations: 11.98 kB / 0.6694 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.1593, allocations: 3.938 kB / 0.6694 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.633e-05/0.1593, allocations: 79.8 kB / 0.6695 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.91e-07/0.1593, allocations: 0 / 0.6695 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002581/0.1596, allocations: 19.94 kB / 0.6695 GB, free: 0.5195 MB / 0.4981 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.0005856/0.1602, allocations: 0.7368 MB / 0.6702 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001297/0.1603, allocations: 39.92 kB / 0.6702 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1603, allocations: 0 / 0.6702 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.1604, allocations: 19.98 kB / 0.6703 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002237/0.1606, allocations: 3.938 kB / 0.6703 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.1619, allocations: 1.329 MB / 0.6716 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002597/0.1621, allocations: 0.6807 MB / 0.6722 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.53e-05/0.1622, allocations: 12.3 kB / 0.6722 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.1622, allocations: 7.438 kB / 0.6723 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of SimCode: time 2.11e-07/0.1622, allocations: 0 / 0.6723 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01996/0.1822, allocations: 1.588 MB / 0.6738 GB, free: 12.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.318/7.5, allocations: 10.36 kB / 0.6738 GB, free: 12.1 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)