Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.007341/0.007341, allocations: 103.7 kB / 15.74 MB, free: 6.445 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.001838/0.001839, allocations: 196.5 kB / 16.67 MB, free: 6.352 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.266 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8273/0.8273, allocations: 132.2 MB / 422.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 67.88 kB / 0.5809 GB, free: 8.035 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4635/0.4654, allocations: 80.2 MB / 0.6592 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002373/0.4678, allocations: 1.276 MB / 0.6604 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009803/0.4689, allocations: 0.6275 MB / 0.6611 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.68e-05/0.4689, allocations: 1.375 kB / 0.6611 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.4689, allocations: 0 / 0.6611 GB, free: 8.746 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.36e-05/0.469, allocations: 4.734 kB / 0.6611 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006257/0.4696, allocations: 147.7 kB / 0.6612 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.92e-05/0.4697, allocations: 34 kB / 0.6612 GB, free: 8.66 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.324e-05/0.4698, allocations: 6.422 kB / 0.6612 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.616e-05/0.4698, allocations: 8.812 kB / 0.6612 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.546e-05/0.4699, allocations: 18.69 kB / 0.6613 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/0.4699, allocations: 1.531 kB / 0.6613 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006139/0.4705, allocations: 342.5 kB / 0.6616 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.702e-05/0.4705, allocations: 6.781 kB / 0.6616 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.4706, allocations: 14.86 kB / 0.6616 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.4709, allocations: 149.5 kB / 0.6618 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4709, allocations: 0 / 0.6618 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.353e-06/0.4709, allocations: 0 / 0.6618 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.4709, allocations: 2.281 kB / 0.6618 GB, free: 8.492 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003939/0.4713, allocations: 377.2 kB / 0.6621 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.4714, allocations: 9.156 kB / 0.6621 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.116e-05/0.4714, allocations: 33.56 kB / 0.6622 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.171e-05/0.4715, allocations: 8.094 kB / 0.6622 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.409e-05/0.4716, allocations: 169.6 kB / 0.6623 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.4716, allocations: 2.031 kB / 0.6623 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.395e-05/0.4716, allocations: 12.34 kB / 0.6623 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001278/0.4717, allocations: 49.23 kB / 0.6624 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.4718, allocations: 5.469 kB / 0.6624 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.4718, allocations: 0 / 0.6624 GB, free: 7.805 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.4718, allocations: 5.172 kB / 0.6624 GB, free: 7.801 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.755e-05/0.4718, allocations: 18.67 kB / 0.6624 GB, free: 7.797 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001499/0.472, allocations: 167.3 kB / 0.6626 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001052/0.4721, allocations: 60.08 kB / 0.6626 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.551e-05/0.4722, allocations: 32.78 kB / 0.6627 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.4722, allocations: 6.078 kB / 0.6627 GB, free: 7.535 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.4722, allocations: 31.66 kB / 0.6627 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.4722, allocations: 0 / 0.6627 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001047/0.4733, allocations: 0.5917 MB / 0.6633 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.124e-05/0.4733, allocations: 56.62 kB / 0.6633 GB, free: 6.91 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.758e-05/0.4734, allocations: 98.11 kB / 0.6634 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.013e-05/0.4734, allocations: 27.11 kB / 0.6635 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.603e-05/0.4734, allocations: 80.8 kB / 0.6635 GB, free: 6.695 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.376e-05/0.4734, allocations: 39.33 kB / 0.6636 GB, free: 6.664 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.4735, allocations: 28.84 kB / 0.6636 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.264e-05/0.4735, allocations: 321.3 kB / 0.6639 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.484e-05/0.4736, allocations: 23.91 kB / 0.6639 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.308e-05/0.4736, allocations: 25.45 kB / 0.6639 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.92e-05/0.4737, allocations: 62.42 kB / 0.664 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.72e-07/0.4737, allocations: 0 / 0.664 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001302/0.4739, allocations: 95.52 kB / 0.6641 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.4739, allocations: 5.188 kB / 0.6641 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.4739, allocations: 0 / 0.6641 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.4739, allocations: 1.188 kB / 0.6641 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.474, allocations: 21.58 kB / 0.6641 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.474, allocations: 5.125 kB / 0.6641 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.592e-05/0.4741, allocations: 9.094 kB / 0.6641 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.4741, allocations: 2.375 kB / 0.6641 GB, free: 6.195 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 5.408e-05/0.4741, allocations: 117.7 kB / 0.6643 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/0.4742, allocations: 1.969 kB / 0.6643 GB, free: 6.074 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001804/0.4743, allocations: 107.8 kB / 0.6644 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4744, allocations: 1.375 kB / 0.6644 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4744, allocations: 0 / 0.6644 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4744, allocations: 5.125 kB / 0.6644 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003486/0.4747, allocations: 356.5 kB / 0.6647 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.4747, allocations: 0 / 0.6647 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.4749, allocations: 21.61 kB / 0.6647 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4749, allocations: 1.156 kB / 0.6647 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.098e-05/0.4749, allocations: 5.438 kB / 0.6647 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4749, allocations: 3.938 kB / 0.6647 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4749, allocations: 1.438 kB / 0.6647 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002142/0.4751, allocations: 214.9 kB / 0.6649 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.014e-05/0.4751, allocations: 86.28 kB / 0.665 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.4752, allocations: 9.078 kB / 0.665 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.668e-05/0.4753, allocations: 2.219 kB / 0.665 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.173e-05/0.4753, allocations: 11.84 kB / 0.665 GB, free: 5.328 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.4753, allocations: 6.938 kB / 0.6651 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.118e-05/0.4753, allocations: 80.42 kB / 0.6651 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4753, allocations: 5.062 kB / 0.6651 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002886/0.4756, allocations: 39.5 kB / 0.6652 GB, free: 5.227 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0004764/0.4761, allocations: 0.7839 MB / 0.6659 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001593/0.4763, allocations: 71.56 kB / 0.666 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4763, allocations: 0 / 0.666 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.689e-05/0.4763, allocations: 26.03 kB / 0.666 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002241/0.4766, allocations: 14.95 kB / 0.666 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001143/0.4777, allocations: 1.508 MB / 0.6675 GB, free: 3.066 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000109/0.4778, allocations: 0.6875 MB / 0.6682 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 4.566e-05/0.4779, allocations: 10.58 kB / 0.6682 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.4779, allocations: 16.28 kB / 0.6682 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.478, allocations: 4 kB / 0.6682 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/0.503, allocations: 2.049 MB / 0.6702 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.333/8.836, allocations: 11.44 kB / 0.6702 GB, free: 1.309 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)