Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="BuildingSystems_BuildingSystems_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.001709/0.001709, 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.002066/0.002066, allocations: 196.6 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 2.128/2.128, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002226/0.002226, allocations: 283.1 kB / 290.7 MB, free: 1.988 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.343/1.343, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003397/0.003397, allocations: 97 kB / 0.5953 GB, free: 28 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2601, allocations: 86.97 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.004207/0.2644, allocations: 1.269 MB / 0.6815 GB, free: 15.31 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.266, allocations: 0.6115 MB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-05/0.2661, allocations: 0 / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.87e-05/0.2662, allocations: 3.938 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.131e-05/0.2663, allocations: 7.984 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008786/0.2671, allocations: 139.4 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.517e-05/0.2673, allocations: 23.92 kB / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.677e-05/0.2673, allocations: 0 / 0.6823 GB, free: 14.53 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.801e-05/0.2674, allocations: 11.92 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.212e-05/0.2675, allocations: 11.98 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.628e-05/0.2675, allocations: 0 / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000903/0.2684, allocations: 343.3 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.318e-05/0.2685, allocations: 7.922 kB / 0.6826 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.773e-05/0.2685, allocations: 11.94 kB / 0.6827 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004235/0.269, allocations: 147.9 kB / 0.6828 GB, free: 14.01 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.269, allocations: 4 kB / 0.6828 GB, free: 14 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.269, allocations: 0 / 0.6828 GB, free: 14 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.269, allocations: 0 / 0.6828 GB, free: 14 MB / 494.1 MB 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.0006429/0.2697, allocations: 359.5 kB / 0.6831 GB, free: 13.6 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.2697, allocations: 8.625 kB / 0.6832 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.345e-05/0.2698, allocations: 34.73 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.2699, allocations: 8.844 kB / 0.6832 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.27, allocations: 168.3 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.2701, allocations: 384 / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.2701, allocations: 4.375 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001594/0.2703, allocations: 42.23 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2703, allocations: 3.938 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.2703, allocations: 4 kB / 0.6834 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.2704, allocations: 3.938 kB / 0.6834 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.536e-05/0.2704, allocations: 8 kB / 0.6834 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002707/0.2707, allocations: 161.6 kB / 0.6836 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.271, allocations: 50.64 kB / 0.6836 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.982e-05/0.2711, allocations: 20.84 kB / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.2711, allocations: 0 / 0.6836 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.2712, allocations: 30.56 kB / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.2712, allocations: 0 / 0.6837 GB, free: 12.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=6): time 0.0009911/0.2722, allocations: 318.2 kB / 0.684 GB, free: 12.58 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.2723, allocations: 51.41 kB / 0.684 GB, free: 12.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.2724, allocations: 93.86 kB / 0.6841 GB, free: 12.41 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.2724, allocations: 25.7 kB / 0.6841 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.439e-05/0.2725, allocations: 84.14 kB / 0.6842 GB, free: 12.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.108e-05/0.2725, allocations: 23.64 kB / 0.6842 GB, free: 12.27 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.585e-05/0.2726, allocations: 17.72 kB / 0.6843 GB, free: 12.25 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2728, allocations: 314.8 kB / 0.6846 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.582e-05/0.2728, allocations: 19.98 kB / 0.6846 GB, free: 11.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.092e-05/0.2729, allocations: 11.94 kB / 0.6846 GB, free: 11.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.709e-05/0.273, allocations: 29.02 kB / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.273, allocations: 4 kB / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001676/0.2731, allocations: 73.5 kB / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.2732, allocations: 8 kB / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2732, allocations: 0 / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.2732, allocations: 0 / 0.6847 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.175e-05/0.2733, allocations: 19.86 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.864e-06/0.2733, allocations: 3.938 kB / 0.6847 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.788e-05/0.2734, allocations: 16.06 kB / 0.6847 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.2734, allocations: 0 / 0.6847 GB, free: 11.74 MB / 494.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 (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 0.0001123/0.2735, allocations: 111.2 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.2736, allocations: 3.938 kB / 0.6848 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002095/0.2738, allocations: 73.64 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.602e-06/0.2738, allocations: 4.516 kB / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2738, allocations: 0 / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.2738, allocations: 0 / 0.6849 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.2743, allocations: 315.4 kB / 0.6852 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2743, allocations: 0 / 0.6852 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.2745, allocations: 15.98 kB / 0.6852 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.2745, allocations: 3.984 kB / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2745, allocations: 0 / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.2745, allocations: 3.938 kB / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2745, allocations: 0 / 0.6852 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.2748, allocations: 184.3 kB / 0.6854 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.247e-05/0.2749, allocations: 81.09 kB / 0.6855 GB, free: 10.85 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.275, allocations: 8.031 kB / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.2751, allocations: 0 / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.526e-05/0.2751, allocations: 7.984 kB / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.2751, allocations: 0 / 0.6855 GB, free: 10.84 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.944e-05/0.2752, allocations: 79.28 kB / 0.6856 GB, free: 10.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.2752, allocations: 0 / 0.6856 GB, free: 10.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004849/0.2757, allocations: 20.06 kB / 0.6856 GB, free: 10.74 MB / 494.1 MB 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.0008422/0.2766, allocations: 0.733 MB / 0.6863 GB, free: 9.977 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.2768, allocations: 43.92 kB / 0.6864 GB, free: 9.934 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2768, allocations: 0 / 0.6864 GB, free: 9.934 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 4.631e-05/0.2769, allocations: 20.06 kB / 0.6864 GB, free: 9.914 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.2772, allocations: 7.938 kB / 0.6864 GB, free: 9.906 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.2791, allocations: 1.315 MB / 0.6877 GB, free: 8.508 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.2794, allocations: 0.6807 MB / 0.6883 GB, free: 7.801 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.302e-05/0.2795, allocations: 4 kB / 0.6883 GB, free: 7.797 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.483e-05/0.2796, allocations: 11.44 kB / 0.6884 GB, free: 7.785 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2796, allocations: 0 / 0.6884 GB, free: 7.785 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.303, allocations: 1.599 MB / 0.6899 GB, free: 6.352 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.09, allocations: 6.062 kB / 0.6899 GB, free: 6.348 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)