Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-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_DerivativeCheck,fileNamePrefix="IDEAS_dev_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_dev_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.007753/0.007753, allocations: 98.64 kB / 15.73 MB, free: 6.047 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.001707/0.001707, allocations: 194 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9468/0.9468, allocations: 135.1 MB / 425.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001305, allocations: 63.91 kB / 0.5852 GB, free: 3.844 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3694/0.3707, allocations: 80.9 MB / 0.6642 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001981/0.3727, allocations: 1.282 MB / 0.6654 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008087/0.3736, allocations: 0.6152 MB / 0.666 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.483e-05/0.3736, allocations: 0 / 0.666 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.883e-05/0.3736, allocations: 0 / 0.666 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.544e-05/0.3737, allocations: 9.266 kB / 0.666 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.3742, allocations: 144.5 kB / 0.6662 GB, free: 5.68 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.833e-05/0.3742, allocations: 20.86 kB / 0.6662 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.542e-05/0.3743, allocations: 1.281 kB / 0.6662 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.035e-05/0.3743, allocations: 21.38 kB / 0.6662 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.013e-05/0.3744, allocations: 3.312 kB / 0.6662 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.3744, allocations: 5.125 kB / 0.6662 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004307/0.3748, allocations: 341.2 kB / 0.6665 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.153e-05/0.3749, allocations: 5.453 kB / 0.6665 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.129e-05/0.3749, allocations: 11.47 kB / 0.6665 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002221/0.3751, allocations: 145.4 kB / 0.6667 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3751, allocations: 1.625 kB / 0.6667 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.097e-05/0.3751, allocations: 4 kB / 0.6667 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.3751, allocations: 3.938 kB / 0.6667 GB, free: 5.355 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.0003331/0.3755, allocations: 362.2 kB / 0.667 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.3755, allocations: 9.969 kB / 0.6671 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.306e-05/0.3756, allocations: 35.95 kB / 0.6671 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.612e-05/0.3756, allocations: 2.062 kB / 0.6671 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.207e-05/0.3757, allocations: 165.9 kB / 0.6672 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.3757, allocations: 6 kB / 0.6673 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.974e-05/0.3757, allocations: 5.594 kB / 0.6673 GB, free: 4.719 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.018e-05/0.3758, allocations: 43.69 kB / 0.6673 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-06/0.3758, allocations: 0 / 0.6673 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.3758, allocations: 1.281 kB / 0.6673 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.3758, allocations: 0 / 0.6673 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.65e-05/0.3759, allocations: 10.27 kB / 0.6673 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001158/0.376, allocations: 163 kB / 0.6675 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.3762, allocations: 43.84 kB / 0.6675 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.046e-05/0.3762, allocations: 23.36 kB / 0.6675 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.3762, allocations: 5.453 kB / 0.6675 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.399e-05/0.3762, allocations: 31.94 kB / 0.6676 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3762, allocations: 0 / 0.6676 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0005091/0.3768, allocations: 316.2 kB / 0.6679 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.899e-05/0.3768, allocations: 53.09 kB / 0.6679 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.886e-05/0.3768, allocations: 96.48 kB / 0.668 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.296e-06/0.3768, allocations: 31.14 kB / 0.668 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.306e-05/0.3769, allocations: 80.14 kB / 0.6681 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.3769, allocations: 26.53 kB / 0.6681 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.921e-05/0.3769, allocations: 18.75 kB / 0.6682 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.694e-05/0.377, allocations: 312.5 kB / 0.6685 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.635e-05/0.377, allocations: 14.17 kB / 0.6685 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.958e-05/0.377, allocations: 14.34 kB / 0.6685 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.04e-05/0.3771, allocations: 28.86 kB / 0.6685 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.3771, allocations: 8 kB / 0.6685 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.196e-05/0.3772, allocations: 72.27 kB / 0.6686 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.3772, allocations: 6.188 kB / 0.6686 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-06/0.3772, allocations: 3.938 kB / 0.6686 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.3772, allocations: 0 / 0.6686 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.197e-05/0.3773, allocations: 14.52 kB / 0.6686 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.67e-06/0.3773, allocations: 3.938 kB / 0.6686 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.882e-05/0.3773, allocations: 1.5 kB / 0.6686 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.3773, allocations: 1.406 kB / 0.6686 GB, free: 3.324 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.878e-05/0.3774, allocations: 121 kB / 0.6687 GB, free: 3.199 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.3774, allocations: 10.11 kB / 0.6687 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001352/0.3775, allocations: 70.36 kB / 0.6688 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3776, allocations: 1.25 kB / 0.6688 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3776, allocations: 0 / 0.6688 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.3776, allocations: 0 / 0.6688 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.3778, allocations: 313.4 kB / 0.6691 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3778, allocations: 0 / 0.6691 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.002e-05/0.3779, allocations: 17.55 kB / 0.6691 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3779, allocations: 1.25 kB / 0.6691 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.776e-06/0.3779, allocations: 5.375 kB / 0.6691 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3779, allocations: 3.938 kB / 0.6691 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3779, allocations: 1.406 kB / 0.6691 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001408/0.3781, allocations: 173.8 kB / 0.6693 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.81e-05/0.3781, allocations: 87.73 kB / 0.6694 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.3781, allocations: 5.281 kB / 0.6694 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.135e-05/0.3782, allocations: 1.656 kB / 0.6694 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.996e-05/0.3782, allocations: 9.703 kB / 0.6694 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.104e-06/0.3782, allocations: 10.09 kB / 0.6694 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.252e-05/0.3783, allocations: 78.16 kB / 0.6695 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.3783, allocations: 0 / 0.6695 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002463/0.3785, allocations: 19.53 kB / 0.6695 GB, free: 2.426 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.0003352/0.3789, allocations: 0.7348 MB / 0.6702 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 9.776e-05/0.379, allocations: 36.55 kB / 0.6703 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.379, allocations: 0 / 0.6703 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.366e-05/0.379, allocations: 11.03 kB / 0.6703 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002314/0.3792, allocations: 19.77 kB / 0.6703 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008548/0.3801, allocations: 1.33 MB / 0.6716 GB, free: 392 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.3803, allocations: 0.6807 MB / 0.6723 GB, free: 15.68 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.11e-05/0.3803, allocations: 15.55 kB / 0.6723 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.3804, allocations: 14.31 kB / 0.6723 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of SimCode: time 2.51e-07/0.3804, allocations: 0 / 0.6723 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01933/0.3997, allocations: 1.616 MB / 0.6739 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.458/7.858, allocations: 6.812 kB / 0.6739 GB, free: 14.84 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)