Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="IDEAS_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.001635/0.001635, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001697/0.001697, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7511/0.7511, allocations: 132.2 MB / 422.6 MB, free: 1.812 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 68.14 kB / 0.5019 GB, free: 3.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4037/0.4057, allocations: 80.2 MB / 0.5802 GB, free: 4.605 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002546/0.4083, allocations: 1.285 MB / 0.5814 GB, free: 3.691 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.4094, allocations: 0.6199 MB / 0.5821 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.527e-05/0.4095, allocations: 0 / 0.5821 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.288e-05/0.4095, allocations: 0 / 0.5821 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.638e-05/0.4096, allocations: 5.547 kB / 0.5821 GB, free: 3.258 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000736/0.4103, allocations: 154.7 kB / 0.5822 GB, free: 3.188 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 8.093e-05/0.4104, allocations: 25.38 kB / 0.5822 GB, free: 3.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.647e-05/0.4105, allocations: 2.047 kB / 0.5822 GB, free: 3.18 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.899e-05/0.4105, allocations: 16.61 kB / 0.5822 GB, free: 3.172 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.846e-05/0.4106, allocations: 15.39 kB / 0.5823 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.4106, allocations: 2.75 kB / 0.5823 GB, free: 3.164 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006927/0.4113, allocations: 345.8 kB / 0.5826 GB, free: 3.062 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.867e-05/0.4114, allocations: 10.78 kB / 0.5826 GB, free: 3.055 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.111e-05/0.4114, allocations: 10.62 kB / 0.5826 GB, free: 3.051 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003322/0.4117, allocations: 156.4 kB / 0.5828 GB, free: 3 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.4117, allocations: 0 / 0.5828 GB, free: 3 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4118, allocations: 0.75 kB / 0.5828 GB, free: 3 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.4118, allocations: 0 / 0.5828 GB, free: 3 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004237/0.4122, allocations: 374.6 kB / 0.5831 GB, free: 2.613 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.4122, allocations: 9.594 kB / 0.5831 GB, free: 2.613 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.436e-05/0.4123, allocations: 36.84 kB / 0.5832 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.4123, allocations: 3.062 kB / 0.5832 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.548e-05/0.4124, allocations: 163.9 kB / 0.5833 GB, free: 2.375 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.4124, allocations: 1.188 kB / 0.5833 GB, free: 2.375 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.4125, allocations: 4.297 kB / 0.5833 GB, free: 2.375 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.4126, allocations: 57.14 kB / 0.5834 GB, free: 2.328 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.4126, allocations: 9.062 kB / 0.5834 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.4126, allocations: 4.625 kB / 0.5834 GB, free: 2.316 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.93e-06/0.4127, allocations: 1.781 kB / 0.5834 GB, free: 2.316 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.993e-05/0.4127, allocations: 18.48 kB / 0.5834 GB, free: 2.312 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001421/0.4129, allocations: 162.9 kB / 0.5836 GB, free: 2.117 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001153/0.413, allocations: 64.58 kB / 0.5836 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.787e-05/0.413, allocations: 28.88 kB / 0.5837 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.998e-05/0.4131, allocations: 4.719 kB / 0.5837 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.4131, allocations: 41.09 kB / 0.5837 GB, free: 2.008 MB / 430.1 MB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.4131, allocations: 0 / 0.5837 GB, free: 2.008 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.001084/0.4142, allocations: 0.579 MB / 0.5843 GB, free: 1.496 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.536e-05/0.4142, allocations: 57.88 kB / 0.5843 GB, free: 1.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.642e-05/0.4143, allocations: 97.5 kB / 0.5844 GB, free: 1.328 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.4143, allocations: 26.58 kB / 0.5844 GB, free: 1.297 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.571e-05/0.4143, allocations: 81.8 kB / 0.5845 GB, free: 1.215 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.583e-05/0.4144, allocations: 43.41 kB / 0.5846 GB, free: 1.18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.85e-05/0.4144, allocations: 24.19 kB / 0.5846 GB, free: 1.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.698e-05/0.4145, allocations: 319.4 kB / 0.5849 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.629e-05/0.4145, allocations: 21.09 kB / 0.5849 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.904e-05/0.4145, allocations: 23.78 kB / 0.5849 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.4147, allocations: 74.25 kB / 0.585 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.4147, allocations: 0 / 0.585 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001515/0.4148, allocations: 92.92 kB / 0.5851 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.4148, allocations: 4.875 kB / 0.5851 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.4149, allocations: 0.6094 kB / 0.5851 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.4149, allocations: 0.8438 kB / 0.5851 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.415, allocations: 24.5 kB / 0.5851 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.415, allocations: 0.6562 kB / 0.5851 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.517e-05/0.415, allocations: 1.906 kB / 0.5851 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.4151, allocations: 11.25 kB / 0.5851 GB, free: 0.7227 MB / 430.1 MB 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 6.358e-05/0.4151, allocations: 117.9 kB / 0.5853 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.4151, allocations: 4.219 kB / 0.5853 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001991/0.4153, allocations: 105 kB / 0.5854 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.4154, allocations: 2.125 kB / 0.5854 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4154, allocations: 0 / 0.5854 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.4154, allocations: 1.172 kB / 0.5854 GB, free: 0.5391 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003565/0.4157, allocations: 367.5 kB / 0.5857 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.4158, allocations: 0.8438 kB / 0.5857 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.4159, allocations: 20.08 kB / 0.5857 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4159, allocations: 0.8125 kB / 0.5857 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.4159, allocations: 5.312 kB / 0.5857 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.4159, allocations: 2.125 kB / 0.5857 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4159, allocations: 3.938 kB / 0.5857 GB, free: 192 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002345/0.4161, allocations: 211.3 kB / 0.5859 GB, free: 28 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.535e-05/0.4162, allocations: 90.81 kB / 0.586 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.4162, allocations: 2.266 kB / 0.586 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.508e-05/0.4163, allocations: 2.703 kB / 0.586 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.212e-05/0.4163, allocations: 5.406 kB / 0.586 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.4164, allocations: 12.52 kB / 0.586 GB, free: 15.91 MB / 446.1 MB Notification: Performance of sorting global known variables: time 4.267e-05/0.4164, allocations: 76.7 kB / 0.5861 GB, free: 15.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4164, allocations: 0.8125 kB / 0.5861 GB, free: 15.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.4167, allocations: 41.31 kB / 0.5862 GB, free: 15.82 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0007094/0.4175, allocations: 0.7787 MB / 0.5869 GB, free: 15.12 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001892/0.4177, allocations: 69.89 kB / 0.587 GB, free: 15.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.506e-06/0.4177, allocations: 1.375 kB / 0.587 GB, free: 15.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 5.511e-05/0.4177, allocations: 35.47 kB / 0.587 GB, free: 15.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.418, allocations: 12.05 kB / 0.587 GB, free: 15.07 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/0.4194, allocations: 1.499 MB / 0.5885 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.4196, allocations: 0.6854 MB / 0.5892 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 4.842e-05/0.4197, allocations: 11.06 kB / 0.5892 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.4197, allocations: 21.86 kB / 0.5892 GB, free: 13.02 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4198, allocations: 0.875 kB / 0.5892 GB, free: 13.02 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.4393, allocations: 2.011 MB / 0.5912 GB, free: 12.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.269/7.708, allocations: 18.06 kB / 0.5912 GB, free: 12.64 MB / 446.1 MB (rm -f IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_IDEAS_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > IDEAS_IDEAS.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)