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.006564/0.006564, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001371/0.001371, allocations: 193.3 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8032/0.8032, allocations: 132.2 MB / 422.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 67.91 kB / 0.5809 GB, free: 8.023 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3913, allocations: 80.2 MB / 0.6592 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002278/0.3936, allocations: 1.463 MB / 0.6606 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009141/0.3946, allocations: 0.6419 MB / 0.6612 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.816e-05/0.3946, allocations: 0 / 0.6612 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.871e-05/0.3947, allocations: 5.344 kB / 0.6613 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.729e-05/0.3947, allocations: 9.719 kB / 0.6613 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005874/0.3953, allocations: 167.1 kB / 0.6614 GB, free: 8.332 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.972e-05/0.3954, allocations: 50.83 kB / 0.6615 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.629e-05/0.3955, allocations: 3.875 kB / 0.6615 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.004e-05/0.3955, allocations: 23.94 kB / 0.6615 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.257e-05/0.3956, allocations: 29.73 kB / 0.6615 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.3956, allocations: 4.094 kB / 0.6615 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005196/0.3961, allocations: 353.1 kB / 0.6619 GB, free: 8.18 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.929e-05/0.3962, allocations: 8.938 kB / 0.6619 GB, free: 8.176 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.544e-05/0.3962, allocations: 25.61 kB / 0.6619 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003187/0.3965, allocations: 176.3 kB / 0.6621 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.3965, allocations: 1.938 kB / 0.6621 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.3965, allocations: 0 / 0.6621 GB, free: 8.102 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.119e-05/0.3966, allocations: 0 / 0.6621 GB, free: 8.102 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.0005021/0.3971, allocations: 401.3 kB / 0.6625 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.3971, allocations: 14.02 kB / 0.6625 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.899e-05/0.3972, allocations: 38.77 kB / 0.6625 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.3972, allocations: 8.609 kB / 0.6625 GB, free: 7.656 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.477e-05/0.3973, allocations: 162.9 kB / 0.6627 GB, free: 7.461 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.3973, allocations: 9.016 kB / 0.6627 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.412e-05/0.3973, allocations: 11.88 kB / 0.6627 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/0.3976, allocations: 78.91 kB / 0.6628 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.3976, allocations: 9.5 kB / 0.6628 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.177e-05/0.3976, allocations: 0 / 0.6628 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3976, allocations: 1.531 kB / 0.6628 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.3978, allocations: 60.53 kB / 0.6628 GB, free: 7.363 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004414/0.3983, allocations: 329.1 kB / 0.6631 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002643/0.3986, allocations: 79.44 kB / 0.6632 GB, free: 6.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.3987, allocations: 27.16 kB / 0.6632 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3987, allocations: 5.344 kB / 0.6632 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.089e-05/0.3987, allocations: 32.03 kB / 0.6633 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.934e-06/0.3987, allocations: 0 / 0.6633 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001569/0.4003, allocations: 0.6551 MB / 0.6639 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.509e-05/0.4004, allocations: 53.66 kB / 0.664 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.961e-05/0.4004, allocations: 103 kB / 0.6641 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.4005, allocations: 25.7 kB / 0.6641 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.885e-05/0.4005, allocations: 95.09 kB / 0.6642 GB, free: 6.051 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.4005, allocations: 35.62 kB / 0.6642 GB, free: 6.02 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.703e-05/0.4006, allocations: 31.05 kB / 0.6642 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.475e-05/0.4006, allocations: 315.8 kB / 0.6645 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.4008, allocations: 34.75 kB / 0.6646 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001164/0.4009, allocations: 30.7 kB / 0.6646 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002373/0.4011, allocations: 78.36 kB / 0.6647 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4011, allocations: 0 / 0.6647 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003042/0.4015, allocations: 124.9 kB / 0.6648 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.4015, allocations: 5.094 kB / 0.6648 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.4015, allocations: 1.469 kB / 0.6648 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.4015, allocations: 3.938 kB / 0.6648 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.4017, allocations: 28.22 kB / 0.6648 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.4017, allocations: 1.031 kB / 0.6648 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.746e-05/0.4018, allocations: 8.094 kB / 0.6649 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.4018, allocations: 2.281 kB / 0.6649 GB, free: 5.52 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 7.15e-05/0.4019, allocations: 121.5 kB / 0.665 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.4019, allocations: 7.391 kB / 0.665 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000369/0.4023, allocations: 132 kB / 0.6651 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.4023, allocations: 1.125 kB / 0.6651 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4023, allocations: 0 / 0.6651 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4023, allocations: 4 kB / 0.6651 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005069/0.4028, allocations: 389.7 kB / 0.6655 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.4028, allocations: 0 / 0.6655 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001475/0.403, allocations: 24.52 kB / 0.6655 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.403, allocations: 5.203 kB / 0.6655 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.233e-05/0.403, allocations: 5.438 kB / 0.6655 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.403, allocations: 0 / 0.6655 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.403, allocations: 1.156 kB / 0.6655 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004728/0.4035, allocations: 251.8 kB / 0.6658 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.55e-05/0.4035, allocations: 86.42 kB / 0.6658 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.4036, allocations: 5.25 kB / 0.6658 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.4037, allocations: 4.25 kB / 0.6658 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.882e-05/0.4037, allocations: 11.52 kB / 0.6659 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.4037, allocations: 11.06 kB / 0.6659 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.723e-05/0.4038, allocations: 82.91 kB / 0.6659 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4038, allocations: 0 / 0.6659 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000335/0.4041, allocations: 45.67 kB / 0.666 GB, free: 4.5 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.0007662/0.4049, allocations: 0.8151 MB / 0.6668 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003432/0.4052, allocations: 83.83 kB / 0.6669 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.4053, allocations: 0 / 0.6669 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.4054, allocations: 48.28 kB / 0.6669 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003466/0.4058, allocations: 7.812 kB / 0.6669 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.4077, allocations: 1.599 MB / 0.6685 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001236/0.4078, allocations: 0.6906 MB / 0.6692 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.986e-05/0.4079, allocations: 20.58 kB / 0.6692 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.571e-05/0.408, allocations: 27.89 kB / 0.6692 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of SimCode: time 1.021e-06/0.408, allocations: 0 / 0.6692 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02234/0.4303, allocations: 2.311 MB / 0.6715 GB, free: 384 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.144/8.575, allocations: 9.766 kB / 0.6715 GB, free: 380 kB / 0.4981 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)