Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.005094/0.005094, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001264/0.001264, allocations: 198.1 kB / 16.68 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.411/1.411, 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 1.097/1.097, allocations: 135.5 MB / 426.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 63.89 kB / 0.5857 GB, free: 3.246 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4415/0.4434, allocations: 81.03 MB / 0.6649 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002106/0.4456, allocations: 1.265 MB / 0.6661 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008672/0.4465, allocations: 0.6189 MB / 0.6667 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.553e-05/0.4465, allocations: 0 / 0.6667 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.757e-05/0.4465, allocations: 3.938 kB / 0.6667 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.532e-05/0.4466, allocations: 1.438 kB / 0.6667 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004593/0.447, allocations: 146.4 kB / 0.6669 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.828e-05/0.4471, allocations: 21.02 kB / 0.6669 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.004e-05/0.4472, allocations: 2.5 kB / 0.6669 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.482e-05/0.4472, allocations: 8.062 kB / 0.6669 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.178e-05/0.4473, allocations: 19.48 kB / 0.6669 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.4473, allocations: 1.25 kB / 0.6669 GB, free: 5.23 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004318/0.4477, allocations: 341 kB / 0.6672 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.185e-05/0.4477, allocations: 5.234 kB / 0.6672 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.348e-05/0.4478, allocations: 7.906 kB / 0.6672 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002329/0.448, allocations: 144.9 kB / 0.6674 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.448, allocations: 0 / 0.6674 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.462e-06/0.448, allocations: 1.531 kB / 0.6674 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.14e-06/0.448, allocations: 0 / 0.6674 GB, free: 4.949 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.0003319/0.4484, allocations: 374.5 kB / 0.6677 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.4484, allocations: 9.406 kB / 0.6678 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.602e-05/0.4484, allocations: 36.25 kB / 0.6678 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.615e-05/0.4485, allocations: 2.062 kB / 0.6678 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.893e-05/0.4485, allocations: 169.7 kB / 0.6679 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.927e-06/0.4486, allocations: 1.812 kB / 0.668 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.035e-05/0.4486, allocations: 5.531 kB / 0.668 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.346e-05/0.4487, allocations: 36.02 kB / 0.668 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.4487, allocations: 3.984 kB / 0.668 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.4487, allocations: 1.094 kB / 0.668 GB, free: 4.262 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.4487, allocations: 5.5 kB / 0.668 GB, free: 4.258 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.605e-05/0.4488, allocations: 13.61 kB / 0.668 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.4489, allocations: 158.5 kB / 0.6682 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.449, allocations: 48.05 kB / 0.6682 GB, free: 4.012 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.973e-05/0.4491, allocations: 23.81 kB / 0.6682 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.548e-05/0.4491, allocations: 1.438 kB / 0.6682 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.36e-05/0.4491, allocations: 35.81 kB / 0.6683 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=4): time 1.203e-06/0.4491, allocations: 0 / 0.6683 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.0005218/0.4497, allocations: 307.5 kB / 0.6686 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.4497, allocations: 52.62 kB / 0.6686 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.35e-05/0.4497, allocations: 97.44 kB / 0.6687 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.955e-06/0.4498, allocations: 29.7 kB / 0.6687 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 1.285e-05/0.4498, allocations: 81.48 kB / 0.6688 GB, free: 3.371 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.476e-05/0.4498, allocations: 26.41 kB / 0.6688 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.937e-05/0.4498, allocations: 22.8 kB / 0.6689 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.733e-05/0.4499, allocations: 316.4 kB / 0.6692 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.395e-05/0.4499, allocations: 9.938 kB / 0.6692 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.038e-05/0.4499, allocations: 15.42 kB / 0.6692 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.919e-05/0.45, allocations: 31.11 kB / 0.6692 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.45, allocations: 3.938 kB / 0.6692 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.067e-05/0.4501, allocations: 65.11 kB / 0.6693 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.4501, allocations: 11.72 kB / 0.6693 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.4501, allocations: 4 kB / 0.6693 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.4501, allocations: 0.75 kB / 0.6693 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.671e-05/0.4502, allocations: 9.906 kB / 0.6693 GB, free: 2.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.4502, allocations: 5.062 kB / 0.6693 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.741e-05/0.4502, allocations: 4 kB / 0.6693 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.4502, allocations: 5.609 kB / 0.6693 GB, free: 2.906 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 4.064e-05/0.4503, allocations: 112.3 kB / 0.6694 GB, free: 2.789 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.18e-05/0.4503, allocations: 10.58 kB / 0.6694 GB, free: 2.781 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.4504, allocations: 74.5 kB / 0.6695 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.4504, allocations: 0 / 0.6695 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.4504, allocations: 1.062 kB / 0.6695 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.4504, allocations: 3.984 kB / 0.6695 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002185/0.4506, allocations: 316.9 kB / 0.6698 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4507, allocations: 0 / 0.6698 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.742e-05/0.4507, allocations: 10.53 kB / 0.6698 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.4507, allocations: 0 / 0.6698 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.4507, allocations: 1.312 kB / 0.6698 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.4507, allocations: 5.406 kB / 0.6698 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.4508, allocations: 4 kB / 0.6698 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001315/0.4509, allocations: 178.4 kB / 0.67 GB, free: 2.207 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.674e-05/0.4509, allocations: 91.77 kB / 0.6701 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.4509, allocations: 0.8438 kB / 0.6701 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.566e-05/0.451, allocations: 1.281 kB / 0.6701 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.684e-05/0.451, allocations: 3.469 kB / 0.6701 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.451, allocations: 10.53 kB / 0.6701 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.803e-05/0.4511, allocations: 88.5 kB / 0.6702 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4511, allocations: 1.25 kB / 0.6702 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002354/0.4513, allocations: 18.44 kB / 0.6702 GB, free: 2.004 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0003328/0.4517, allocations: 0.7387 MB / 0.6709 GB, free: 1.293 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001028/0.4518, allocations: 28.94 kB / 0.671 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4518, allocations: 0 / 0.671 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.823e-05/0.4518, allocations: 24.3 kB / 0.671 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002161/0.452, allocations: 9.312 kB / 0.671 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008776/0.4529, allocations: 1.326 MB / 0.6723 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.4532, allocations: 0.6792 MB / 0.673 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.662e-05/0.4533, allocations: 4.688 kB / 0.673 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.263e-05/0.4533, allocations: 13.84 kB / 0.673 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of SimCode: time 2.31e-07/0.4533, allocations: 4 kB / 0.673 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.4754, allocations: 1.586 MB / 0.6745 GB, free: 14.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.736/8.211, allocations: 12.19 kB / 0.6745 GB, free: 14.41 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck.fmu > IDEAS_dev_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)