Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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/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_DerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.007078/0.007078, allocations: 102.2 kB / 15.73 MB, free: 6.449 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.001852/0.001852, allocations: 199.5 kB / 16.68 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8346/0.8346, allocations: 132.2 MB / 422.7 MB, free: 1.691 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 67.84 kB / 0.5809 GB, free: 8.047 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3886, allocations: 80.2 MB / 0.6592 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002167/0.3909, allocations: 1.27 MB / 0.6604 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009114/0.3918, allocations: 0.6167 MB / 0.661 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.33e-05/0.3918, allocations: 1.375 kB / 0.661 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.98e-05/0.3919, allocations: 0.75 kB / 0.661 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.27e-05/0.3919, allocations: 8.625 kB / 0.661 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005512/0.3925, allocations: 156.3 kB / 0.6612 GB, free: 8.473 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.708e-05/0.3925, allocations: 23.77 kB / 0.6612 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.3926, allocations: 2.406 kB / 0.6612 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.723e-05/0.3926, allocations: 9.109 kB / 0.6612 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.464e-05/0.3927, allocations: 10.28 kB / 0.6612 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.421e-05/0.3927, allocations: 1.188 kB / 0.6612 GB, free: 8.453 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005841/0.3933, allocations: 344.9 kB / 0.6616 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.456e-05/0.3933, allocations: 1.812 kB / 0.6616 GB, free: 8.352 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.016e-05/0.3933, allocations: 12.88 kB / 0.6616 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.3937, allocations: 145.2 kB / 0.6617 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.3937, allocations: 0.8438 kB / 0.6617 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.166e-06/0.3937, allocations: 5.344 kB / 0.6617 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.892e-06/0.3937, allocations: 3.938 kB / 0.6617 GB, free: 8.293 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.0003887/0.3941, allocations: 361.7 kB / 0.6621 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.3941, allocations: 8.688 kB / 0.6621 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.831e-05/0.3942, allocations: 32.67 kB / 0.6621 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.3942, allocations: 2.25 kB / 0.6621 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.909e-05/0.3943, allocations: 167 kB / 0.6623 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.3943, allocations: 5.688 kB / 0.6623 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.3943, allocations: 6.625 kB / 0.6623 GB, free: 7.668 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.3945, allocations: 44.16 kB / 0.6623 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3945, allocations: 0 / 0.6623 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-06/0.3945, allocations: 0 / 0.6623 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3945, allocations: 1.312 kB / 0.6623 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.919e-05/0.3945, allocations: 7.703 kB / 0.6623 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001317/0.3947, allocations: 164 kB / 0.6625 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001916/0.3949, allocations: 43.2 kB / 0.6625 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.981e-05/0.3949, allocations: 24.94 kB / 0.6626 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.3949, allocations: 1.828 kB / 0.6626 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.395, allocations: 32.34 kB / 0.6626 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.012e-06/0.395, allocations: 0 / 0.6626 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0005657/0.3955, allocations: 308.8 kB / 0.6629 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.316e-05/0.3956, allocations: 53.31 kB / 0.6629 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.287e-05/0.3956, allocations: 103.8 kB / 0.663 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.336e-06/0.3956, allocations: 27.08 kB / 0.6631 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.542e-05/0.3957, allocations: 80.84 kB / 0.6631 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.536e-05/0.3957, allocations: 24.17 kB / 0.6632 GB, free: 6.754 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.235e-05/0.3957, allocations: 19.69 kB / 0.6632 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.779e-05/0.3958, allocations: 314.2 kB / 0.6635 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.84e-05/0.3958, allocations: 19.25 kB / 0.6635 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.266e-05/0.3958, allocations: 13.16 kB / 0.6635 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.608e-05/0.3959, allocations: 40.52 kB / 0.6635 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.3959, allocations: 7.875 kB / 0.6636 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.219e-05/0.396, allocations: 64.33 kB / 0.6636 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.396, allocations: 5.922 kB / 0.6636 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.396, allocations: 1.281 kB / 0.6636 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/0.3961, allocations: 3.984 kB / 0.6636 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.387e-05/0.3961, allocations: 15.33 kB / 0.6636 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.3961, allocations: 0.5625 kB / 0.6636 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.823e-05/0.3961, allocations: 1.312 kB / 0.6636 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-06/0.3962, allocations: 2.016 kB / 0.6636 GB, free: 6.32 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 5.091e-05/0.3962, allocations: 121.9 kB / 0.6638 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.116e-05/0.3962, allocations: 5.328 kB / 0.6638 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.3964, allocations: 68.27 kB / 0.6638 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.3964, allocations: 1.25 kB / 0.6638 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3964, allocations: 1.312 kB / 0.6638 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3964, allocations: 0.6562 kB / 0.6638 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002354/0.3966, allocations: 312.4 kB / 0.6641 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3966, allocations: 5.375 kB / 0.6641 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.117e-05/0.3967, allocations: 11.17 kB / 0.6641 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3967, allocations: 1.281 kB / 0.6641 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.3967, allocations: 9.469 kB / 0.6642 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.3968, allocations: 5.656 kB / 0.6642 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.3968, allocations: 0 / 0.6642 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001435/0.3969, allocations: 176.6 kB / 0.6643 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/0.3969, allocations: 89.78 kB / 0.6644 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.358e-05/0.397, allocations: 1.312 kB / 0.6644 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.13e-05/0.397, allocations: 2.312 kB / 0.6644 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.002e-05/0.3971, allocations: 3.938 kB / 0.6644 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.3971, allocations: 10.19 kB / 0.6644 GB, free: 5.527 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.178e-05/0.3971, allocations: 79.17 kB / 0.6645 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.41e-07/0.3971, allocations: 0 / 0.6645 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002445/0.3974, allocations: 20.31 kB / 0.6645 GB, free: 5.449 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.000353/0.3977, allocations: 0.7365 MB / 0.6652 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001163/0.3978, allocations: 36.66 kB / 0.6653 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3979, allocations: 0 / 0.6653 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.561e-05/0.3979, allocations: 16.89 kB / 0.6653 GB, free: 4.734 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.3981, allocations: 11.45 kB / 0.6653 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008747/0.399, allocations: 1.334 MB / 0.6666 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.783e-05/0.3991, allocations: 0.6839 MB / 0.6673 GB, free: 2.715 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.135e-05/0.3991, allocations: 11.03 kB / 0.6673 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.877e-05/0.3992, allocations: 15.53 kB / 0.6673 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.3992, allocations: 0 / 0.6673 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.4238, allocations: 1.604 MB / 0.6689 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.232/8.655, allocations: 22.16 kB / 0.6689 GB, free: 1.883 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)