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.007017/0.007017, allocations: 96.7 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.001792/0.001792, allocations: 196.9 kB / 16.67 MB, free: 5.973 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9041/0.9041, allocations: 135.1 MB / 425.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 71.89 kB / 0.5851 GB, free: 3.828 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3799, allocations: 80.91 MB / 0.6642 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002113/0.382, allocations: 1.466 MB / 0.6656 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008557/0.3829, allocations: 0.6316 MB / 0.6662 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.61e-05/0.3829, allocations: 0 / 0.6662 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.383, allocations: 3.938 kB / 0.6662 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.757e-05/0.383, allocations: 9.234 kB / 0.6662 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005084/0.3836, allocations: 169.6 kB / 0.6664 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.928e-05/0.3836, allocations: 58.64 kB / 0.6664 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.242e-05/0.3837, allocations: 3.938 kB / 0.6664 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.698e-05/0.3837, allocations: 20.61 kB / 0.6665 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.028e-05/0.3838, allocations: 36.27 kB / 0.6665 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.3838, allocations: 3.312 kB / 0.6665 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004109/0.3842, allocations: 345.5 kB / 0.6668 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.423e-05/0.3843, allocations: 9.516 kB / 0.6668 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.3843, allocations: 27.8 kB / 0.6669 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002466/0.3845, allocations: 180.5 kB / 0.667 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3846, allocations: 3.938 kB / 0.667 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3846, allocations: 1.344 kB / 0.667 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.3846, allocations: 0 / 0.667 GB, free: 5.09 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.0004802/0.3851, allocations: 402 kB / 0.6674 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3851, allocations: 10.41 kB / 0.6674 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.72e-05/0.3851, allocations: 39.95 kB / 0.6675 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.155e-05/0.3852, allocations: 8.391 kB / 0.6675 GB, free: 4.629 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.654e-05/0.3852, allocations: 170.9 kB / 0.6676 GB, free: 4.426 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.515e-05/0.3853, allocations: 8.25 kB / 0.6677 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.18e-05/0.3853, allocations: 7.938 kB / 0.6677 GB, free: 4.418 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.3855, allocations: 74.5 kB / 0.6677 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3855, allocations: 3.953 kB / 0.6677 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.3856, allocations: 5.469 kB / 0.6677 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.3856, allocations: 1.031 kB / 0.6677 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002231/0.3858, allocations: 60.69 kB / 0.6678 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004151/0.3862, allocations: 328.1 kB / 0.6681 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002552/0.3865, allocations: 79.91 kB / 0.6682 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.3866, allocations: 31.36 kB / 0.6682 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.3866, allocations: 5.188 kB / 0.6682 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/0.3866, allocations: 35.72 kB / 0.6683 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.3867, allocations: 3.938 kB / 0.6683 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.001409/0.3881, allocations: 0.6491 MB / 0.6689 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.393e-05/0.3881, allocations: 56.75 kB / 0.669 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.426e-05/0.3882, allocations: 98.72 kB / 0.669 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.13e-05/0.3882, allocations: 31.11 kB / 0.6691 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.495e-05/0.3882, allocations: 86.84 kB / 0.6692 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.3882, allocations: 39.28 kB / 0.6692 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.3883, allocations: 26.72 kB / 0.6692 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.167e-05/0.3883, allocations: 320 kB / 0.6695 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.3884, allocations: 34.41 kB / 0.6696 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001168/0.3886, allocations: 27.17 kB / 0.6696 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.3888, allocations: 78.27 kB / 0.6697 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.3888, allocations: 0 / 0.6697 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002913/0.3891, allocations: 127.3 kB / 0.6698 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.3891, allocations: 5.469 kB / 0.6698 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.3892, allocations: 0 / 0.6698 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3892, allocations: 3.938 kB / 0.6698 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.3893, allocations: 29.56 kB / 0.6698 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3893, allocations: 0 / 0.6698 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.353e-05/0.3894, allocations: 8.531 kB / 0.6698 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.3894, allocations: 3.094 kB / 0.6698 GB, free: 2.473 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.131e-05/0.3895, allocations: 122.2 kB / 0.6699 GB, free: 2.348 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.058e-05/0.3895, allocations: 6.203 kB / 0.67 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003343/0.3899, allocations: 131.8 kB / 0.6701 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.3899, allocations: 1.25 kB / 0.6701 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3899, allocations: 0 / 0.6701 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3899, allocations: 1.031 kB / 0.6701 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000452/0.3903, allocations: 392.4 kB / 0.6705 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3904, allocations: 0 / 0.6705 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001387/0.3905, allocations: 28.73 kB / 0.6705 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.3905, allocations: 1.406 kB / 0.6705 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.3905, allocations: 1.25 kB / 0.6705 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3905, allocations: 0 / 0.6705 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3905, allocations: 1.094 kB / 0.6705 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004339/0.391, allocations: 255.6 kB / 0.6707 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.735e-05/0.391, allocations: 86.39 kB / 0.6708 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.391, allocations: 5.469 kB / 0.6708 GB, free: 1.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.3911, allocations: 8.094 kB / 0.6708 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.601e-05/0.3912, allocations: 11.56 kB / 0.6708 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.3912, allocations: 3.969 kB / 0.6708 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.976e-05/0.3912, allocations: 82.75 kB / 0.6709 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.3912, allocations: 0 / 0.6709 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002693/0.3915, allocations: 49.86 kB / 0.671 GB, free: 1.461 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.0006353/0.3921, allocations: 0.806 MB / 0.6718 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003025/0.3924, allocations: 95.55 kB / 0.6718 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3924, allocations: 1.094 kB / 0.6718 GB, free: 0.6914 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.3926, allocations: 47.45 kB / 0.6719 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002928/0.3929, allocations: 14.66 kB / 0.6719 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.3946, allocations: 1.597 MB / 0.6735 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.3948, allocations: 0.6917 MB / 0.6741 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 5.53e-05/0.3949, allocations: 12.02 kB / 0.6741 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.76e-05/0.395, allocations: 28.48 kB / 0.6742 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.395, allocations: 0 / 0.6742 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.4137, allocations: 2.319 MB / 0.6764 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.321/7.735, allocations: 14.62 kB / 0.6765 GB, free: 13.32 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)