Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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_m_flow_DerivativeCheck2,fileNamePrefix="IDEAS_dev_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_dev_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.004523/0.004523, allocations: 101.3 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.001239/0.001239, allocations: 201 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9426/0.9426, allocations: 135.5 MB / 426.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 67.89 kB / 0.5858 GB, free: 3.188 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3911, allocations: 81.02 MB / 0.6649 GB, free: 6.848 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002227/0.3934, allocations: 1.463 MB / 0.6663 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008359/0.3943, allocations: 0.6392 MB / 0.6669 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.205e-05/0.3943, allocations: 0 / 0.6669 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.084e-05/0.3943, allocations: 9.109 kB / 0.6669 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.334e-05/0.3944, allocations: 3.938 kB / 0.6669 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004866/0.3949, allocations: 167.1 kB / 0.6671 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.039e-05/0.395, allocations: 54.25 kB / 0.6672 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.054e-05/0.395, allocations: 3.938 kB / 0.6672 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.649e-05/0.3951, allocations: 21.77 kB / 0.6672 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.241e-05/0.3951, allocations: 31.28 kB / 0.6672 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.3952, allocations: 4.438 kB / 0.6672 GB, free: 4.992 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004322/0.3956, allocations: 349 kB / 0.6675 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.692e-05/0.3956, allocations: 9.953 kB / 0.6676 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.234e-05/0.3957, allocations: 24.06 kB / 0.6676 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000256/0.3959, allocations: 179.7 kB / 0.6677 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.3959, allocations: 4 kB / 0.6678 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.413e-06/0.3959, allocations: 0 / 0.6678 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.3959, allocations: 1.094 kB / 0.6678 GB, free: 4.66 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.0004839/0.3964, allocations: 402.8 kB / 0.6681 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.3965, allocations: 9.5 kB / 0.6681 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.697e-05/0.3965, allocations: 37.28 kB / 0.6682 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.3965, allocations: 7.391 kB / 0.6682 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.455e-05/0.3966, allocations: 163 kB / 0.6683 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.577e-05/0.3966, allocations: 15.3 kB / 0.6684 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.3967, allocations: 8.719 kB / 0.6684 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002173/0.3969, allocations: 80.28 kB / 0.6684 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3969, allocations: 1.406 kB / 0.6684 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.3969, allocations: 7.984 kB / 0.6685 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.3969, allocations: 2.844 kB / 0.6685 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002247/0.3972, allocations: 48.11 kB / 0.6685 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004454/0.3976, allocations: 335.4 kB / 0.6688 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.3979, allocations: 80.22 kB / 0.6689 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.398, allocations: 31.94 kB / 0.6689 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.3981, allocations: 0 / 0.6689 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.772e-05/0.3981, allocations: 35.97 kB / 0.669 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 9.52e-07/0.3981, allocations: 0 / 0.669 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001442/0.3995, allocations: 0.6493 MB / 0.6696 GB, free: 2.879 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.261e-05/0.3996, allocations: 52.62 kB / 0.6696 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.576e-05/0.3996, allocations: 103.4 kB / 0.6697 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.3996, allocations: 29.7 kB / 0.6698 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.406e-05/0.3997, allocations: 86.81 kB / 0.6699 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.3997, allocations: 44.47 kB / 0.6699 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.791e-05/0.3997, allocations: 25.83 kB / 0.6699 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.173e-05/0.3998, allocations: 321.1 kB / 0.6702 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.3999, allocations: 34.28 kB / 0.6703 GB, free: 2.191 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.4, allocations: 30.66 kB / 0.6703 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.4003, allocations: 68.97 kB / 0.6704 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4003, allocations: 5.359 kB / 0.6704 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002837/0.4006, allocations: 122 kB / 0.6705 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.4006, allocations: 5.719 kB / 0.6705 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.4006, allocations: 0 / 0.6705 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.4006, allocations: 5.062 kB / 0.6705 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.4008, allocations: 28.05 kB / 0.6705 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.622e-06/0.4008, allocations: 1.406 kB / 0.6705 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.044e-05/0.4008, allocations: 6.656 kB / 0.6705 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-06/0.4009, allocations: 7.172 kB / 0.6705 GB, free: 2.051 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.577e-05/0.4009, allocations: 117.5 kB / 0.6706 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.962e-05/0.401, allocations: 7.891 kB / 0.6706 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003422/0.4013, allocations: 133.8 kB / 0.6708 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4013, allocations: 1.344 kB / 0.6708 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4013, allocations: 1.25 kB / 0.6708 GB, free: 1.836 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4013, allocations: 4.078 kB / 0.6708 GB, free: 1.832 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004679/0.4018, allocations: 389.2 kB / 0.6712 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.4018, allocations: 4 kB / 0.6712 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.402, allocations: 31.92 kB / 0.6712 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.402, allocations: 5.266 kB / 0.6712 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.958e-06/0.402, allocations: 1.094 kB / 0.6712 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.402, allocations: 1.312 kB / 0.6712 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.402, allocations: 80 / 0.6712 GB, free: 1.441 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004517/0.4025, allocations: 252.4 kB / 0.6714 GB, free: 1.25 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.066e-05/0.4025, allocations: 87.36 kB / 0.6715 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.709e-05/0.4025, allocations: 1.188 kB / 0.6715 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.4026, allocations: 7.984 kB / 0.6715 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.778e-05/0.4026, allocations: 8 kB / 0.6715 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.716e-06/0.4027, allocations: 2.281 kB / 0.6715 GB, free: 1.141 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.142e-05/0.4027, allocations: 86.92 kB / 0.6716 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4027, allocations: 3.938 kB / 0.6716 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002698/0.403, allocations: 42.53 kB / 0.6717 GB, free: 1.039 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.0006602/0.4036, allocations: 0.8125 MB / 0.6725 GB, free: 312 kB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000303/0.4039, allocations: 87.08 kB / 0.6725 GB, free: 276 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.404, allocations: 4.062 kB / 0.6725 GB, free: 272 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001308/0.4041, allocations: 48.5 kB / 0.6726 GB, free: 252 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.4044, allocations: 12.27 kB / 0.6726 GB, free: 244 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002006/0.4064, allocations: 1.588 MB / 0.6742 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.4067, allocations: 0.6913 MB / 0.6748 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.465e-05/0.4068, allocations: 12.05 kB / 0.6748 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.61e-05/0.4068, allocations: 28.45 kB / 0.6749 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of SimCode: time 2.134e-06/0.4069, allocations: 0 / 0.6749 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02433/0.4312, allocations: 2.334 MB / 0.6771 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.982/8.413, allocations: 7.469 kB / 0.6772 GB, free: 12.9 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)