Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="BuildingSystems_BuildingSystems_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.001717/0.001717, 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.002583/0.002583, allocations: 195.5 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.285/2.285, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003735/0.003735, allocations: 286.5 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.636/1.636, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003307/0.003308, allocations: 95.19 kB / 0.5953 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2427, allocations: 86.98 MB / 0.6803 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00411/0.2468, allocations: 1.276 MB / 0.6815 GB, free: 15.32 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001721/0.2486, allocations: 0.615 MB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.655e-05/0.2487, allocations: 0 / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.525e-05/0.2487, allocations: 3.938 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.335e-05/0.2488, allocations: 0 / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000966/0.2498, allocations: 157.6 kB / 0.6823 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 8.564e-05/0.2499, allocations: 23.94 kB / 0.6823 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.944e-05/0.25, allocations: 11.92 kB / 0.6823 GB, free: 14.51 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.767e-05/0.25, allocations: 19.92 kB / 0.6823 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.182e-05/0.2501, allocations: 11.92 kB / 0.6824 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.717e-05/0.2501, allocations: 0 / 0.6824 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007674/0.2509, allocations: 343.4 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.2509, allocations: 8 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.31e-05/0.251, allocations: 15.92 kB / 0.6827 GB, free: 14.12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000469/0.2515, allocations: 155.8 kB / 0.6829 GB, free: 13.97 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2515, allocations: 0 / 0.6829 GB, free: 13.97 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2515, allocations: 0 / 0.6829 GB, free: 13.97 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.2515, allocations: 0 / 0.6829 GB, free: 13.97 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0006641/0.2522, allocations: 363.5 kB / 0.6832 GB, free: 13.56 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/0.2523, allocations: 8.031 kB / 0.6832 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.691e-05/0.2523, allocations: 38.73 kB / 0.6832 GB, free: 13.51 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.763e-05/0.2524, allocations: 8.844 kB / 0.6833 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.2526, allocations: 172.2 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.2526, allocations: 4.375 kB / 0.6834 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/0.2527, allocations: 8.375 kB / 0.6834 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.2529, allocations: 42.25 kB / 0.6835 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.2529, allocations: 7.938 kB / 0.6835 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/0.253, allocations: 11.98 kB / 0.6835 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.253, allocations: 3.938 kB / 0.6835 GB, free: 13.21 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.229e-05/0.2531, allocations: 16 kB / 0.6835 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002698/0.2533, allocations: 161.7 kB / 0.6837 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.2536, allocations: 62.5 kB / 0.6837 GB, free: 12.92 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.392e-05/0.2536, allocations: 24.84 kB / 0.6837 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.07e-05/0.2537, allocations: 4 kB / 0.6838 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.2537, allocations: 38.56 kB / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.914e-06/0.2538, allocations: 0 / 0.6838 GB, free: 12.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.001873/0.2556, allocations: 0.5915 MB / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.2557, allocations: 55.41 kB / 0.6844 GB, free: 12.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.715e-05/0.2558, allocations: 93.86 kB / 0.6845 GB, free: 11.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.2559, allocations: 25.7 kB / 0.6845 GB, free: 11.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.469e-05/0.2559, allocations: 88.08 kB / 0.6846 GB, free: 11.87 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.73e-05/0.256, allocations: 39.44 kB / 0.6847 GB, free: 11.83 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.292e-05/0.2561, allocations: 29.7 kB / 0.6847 GB, free: 11.79 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2563, allocations: 314.8 kB / 0.685 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.947e-05/0.2564, allocations: 32.11 kB / 0.685 GB, free: 11.45 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.321e-05/0.2564, allocations: 19.98 kB / 0.685 GB, free: 11.43 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.2566, allocations: 55.61 kB / 0.6851 GB, free: 11.37 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2566, allocations: 0 / 0.6851 GB, free: 11.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002558/0.2569, allocations: 101.6 kB / 0.6852 GB, free: 11.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.2569, allocations: 7.984 kB / 0.6852 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.257, allocations: 0 / 0.6852 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.257, allocations: 0 / 0.6852 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.2572, allocations: 23.94 kB / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2572, allocations: 0 / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.721e-05/0.2572, allocations: 4 kB / 0.6852 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.2573, allocations: 8 kB / 0.6852 GB, free: 11.22 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 (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 0.0001117/0.2574, allocations: 115.1 kB / 0.6853 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.2574, allocations: 11.84 kB / 0.6853 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003194/0.2578, allocations: 109.5 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.2578, allocations: 3.984 kB / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.453e-06/0.2578, allocations: 0 / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.2578, allocations: 3.984 kB / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006478/0.2585, allocations: 350.5 kB / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.2585, allocations: 0 / 0.6858 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001857/0.2587, allocations: 27.92 kB / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.2587, allocations: 0 / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.2587, allocations: 4 kB / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.2588, allocations: 0 / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.2588, allocations: 0 / 0.6858 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004049/0.2592, allocations: 219.7 kB / 0.686 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.037e-05/0.2592, allocations: 81.17 kB / 0.6861 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/0.2593, allocations: 0 / 0.6861 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.2594, allocations: 11.94 kB / 0.6861 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.786e-05/0.2595, allocations: 7.984 kB / 0.6861 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.2595, allocations: 3.938 kB / 0.6861 GB, free: 10.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.364e-05/0.2596, allocations: 79.28 kB / 0.6862 GB, free: 10.11 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2596, allocations: 0 / 0.6862 GB, free: 10.11 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005436/0.2602, allocations: 39.92 kB / 0.6862 GB, free: 10.07 MB / 494.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.0009288/0.2611, allocations: 0.7867 MB / 0.687 GB, free: 9.258 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002752/0.2614, allocations: 63.86 kB / 0.6871 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.2614, allocations: 0 / 0.6871 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 9.538e-05/0.2615, allocations: 39.92 kB / 0.6871 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.262, allocations: 4 kB / 0.6871 GB, free: 9.152 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002421/0.2644, allocations: 1.488 MB / 0.6886 GB, free: 7.59 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003654/0.2648, allocations: 0.6923 MB / 0.6892 GB, free: 6.871 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.673e-05/0.2649, allocations: 11.92 kB / 0.6893 GB, free: 6.859 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.404e-05/0.265, allocations: 29.39 kB / 0.6893 GB, free: 6.832 MB / 494.1 MB Notification: Performance of SimCode: time 4.308e-06/0.265, allocations: 0 / 0.6893 GB, free: 6.832 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.2966, allocations: 2.045 MB / 0.6913 GB, free: 4.949 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.98, allocations: 12.03 kB / 0.6913 GB, free: 4.941 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > BuildingSystems_BuildingSystems.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)