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.005342/0.005342, allocations: 99.98 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.001304/0.001304, allocations: 202 kB / 16.68 MB, free: 5.965 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9855/0.9855, allocations: 135.1 MB / 425.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 63.91 kB / 0.5851 GB, free: 3.883 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.3831, allocations: 80.91 MB / 0.6642 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002299/0.3854, allocations: 1.282 MB / 0.6654 GB, free: 6.266 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009735/0.3865, allocations: 0.6146 MB / 0.666 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.3865, allocations: 0 / 0.666 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.196e-05/0.3866, allocations: 0 / 0.666 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.587e-05/0.3866, allocations: 9.312 kB / 0.666 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005986/0.3872, allocations: 143.4 kB / 0.6662 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.281e-05/0.3873, allocations: 21.89 kB / 0.6662 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.753e-05/0.3873, allocations: 1.969 kB / 0.6662 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.113e-05/0.3874, allocations: 7.906 kB / 0.6662 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.107e-05/0.3874, allocations: 15.64 kB / 0.6662 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.3875, allocations: 5.156 kB / 0.6662 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004774/0.3879, allocations: 341.5 kB / 0.6665 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.188e-05/0.388, allocations: 5.812 kB / 0.6665 GB, free: 5.441 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.961e-05/0.388, allocations: 11.88 kB / 0.6665 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002713/0.3883, allocations: 145.8 kB / 0.6667 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3883, allocations: 0 / 0.6667 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3883, allocations: 0 / 0.6667 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.3883, allocations: 3.984 kB / 0.6667 GB, free: 5.352 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.0003775/0.3887, allocations: 367.2 kB / 0.667 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.3887, allocations: 9.375 kB / 0.667 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.867e-05/0.3888, allocations: 31.94 kB / 0.6671 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.793e-05/0.3888, allocations: 2.25 kB / 0.6671 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.429e-05/0.3889, allocations: 173.5 kB / 0.6672 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.3889, allocations: 1.531 kB / 0.6672 GB, free: 4.715 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.3889, allocations: 14.61 kB / 0.6673 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.3891, allocations: 35.72 kB / 0.6673 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.3891, allocations: 0 / 0.6673 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.3891, allocations: 5.5 kB / 0.6673 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3891, allocations: 0 / 0.6673 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.667e-05/0.3891, allocations: 5.875 kB / 0.6673 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.3893, allocations: 158.5 kB / 0.6675 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.3895, allocations: 52.17 kB / 0.6675 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.672e-05/0.3895, allocations: 24.69 kB / 0.6675 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3895, allocations: 0 / 0.6675 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.474e-05/0.3896, allocations: 31.72 kB / 0.6676 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 9.42e-07/0.3896, allocations: 1.188 kB / 0.6676 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0006091/0.3902, allocations: 307 kB / 0.6679 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.231e-05/0.3902, allocations: 52.72 kB / 0.6679 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.038e-05/0.3903, allocations: 96.69 kB / 0.668 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 8.686e-06/0.3903, allocations: 30.86 kB / 0.668 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.688e-05/0.3903, allocations: 81.58 kB / 0.6681 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.805e-05/0.3903, allocations: 18.39 kB / 0.6681 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.351e-05/0.3904, allocations: 21.8 kB / 0.6681 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.278e-05/0.3904, allocations: 320.1 kB / 0.6684 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.671e-05/0.3905, allocations: 18.48 kB / 0.6685 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.134e-05/0.3905, allocations: 11.2 kB / 0.6685 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.316e-05/0.3906, allocations: 35.69 kB / 0.6685 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3906, allocations: 5.219 kB / 0.6685 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.12e-05/0.3907, allocations: 59.69 kB / 0.6686 GB, free: 3.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.3907, allocations: 9.781 kB / 0.6686 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.3907, allocations: 0 / 0.6686 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.3907, allocations: 1.344 kB / 0.6686 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.139e-05/0.3908, allocations: 21.02 kB / 0.6686 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3908, allocations: 5.188 kB / 0.6686 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.796e-05/0.3908, allocations: 4 kB / 0.6686 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.3908, allocations: 1.781 kB / 0.6686 GB, free: 3.316 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.581e-05/0.3909, allocations: 119.4 kB / 0.6687 GB, free: 3.195 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.189e-05/0.3909, allocations: 5.484 kB / 0.6687 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.391, allocations: 75.56 kB / 0.6688 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.3911, allocations: 0 / 0.6688 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.3911, allocations: 1.344 kB / 0.6688 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3911, allocations: 0 / 0.6688 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002666/0.3913, allocations: 315.6 kB / 0.6691 GB, free: 2.793 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.3914, allocations: 5.328 kB / 0.6691 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.276e-05/0.3914, allocations: 13.28 kB / 0.6691 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.3914, allocations: 1.406 kB / 0.6691 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.3915, allocations: 5.047 kB / 0.6691 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.3915, allocations: 1.562 kB / 0.6691 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3915, allocations: 0 / 0.6691 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001582/0.3916, allocations: 178.2 kB / 0.6693 GB, free: 2.617 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.444e-05/0.3917, allocations: 91.52 kB / 0.6694 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.471e-05/0.3917, allocations: 1.062 kB / 0.6694 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.371e-05/0.3918, allocations: 0.9688 kB / 0.6694 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.133e-05/0.3918, allocations: 2.438 kB / 0.6694 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.3918, allocations: 6.156 kB / 0.6694 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.561e-05/0.3918, allocations: 85.67 kB / 0.6695 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.52e-07/0.3918, allocations: 0 / 0.6695 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000255/0.3921, allocations: 27.91 kB / 0.6695 GB, free: 2.414 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.0004024/0.3925, allocations: 0.7353 MB / 0.6702 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001127/0.3926, allocations: 32.77 kB / 0.6703 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3927, allocations: 64 / 0.6703 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.683e-05/0.3927, allocations: 18.47 kB / 0.6703 GB, free: 1.688 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.3929, allocations: 15.88 kB / 0.6703 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009829/0.3939, allocations: 1.329 MB / 0.6716 GB, free: 380 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002067/0.3941, allocations: 0.6803 MB / 0.6723 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.535e-05/0.3942, allocations: 7.578 kB / 0.6723 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.3942, allocations: 19.12 kB / 0.6723 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of SimCode: time 4.01e-07/0.3942, allocations: 0 / 0.6723 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.4172, allocations: 1.621 MB / 0.6739 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.964/8.381, allocations: 6.094 kB / 0.6739 GB, free: 14.82 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)