Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_8_Buildings_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.001127/0.001127, 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.001169/0.001169, allocations: 194.5 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.1 MB / 222.4 MB, free: 4.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.714/1.714, allocations: 292.3 MB / 0.5489 GB, free: 12.8 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00302/0.00302, allocations: 71.88 kB / 0.6716 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2403, allocations: 114.5 MB / 0.7835 GB, free: 13.34 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002721/0.2431, allocations: 1.272 MB / 0.7847 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2441, allocations: 0.6071 MB / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.545e-05/0.2441, allocations: 4 kB / 0.7853 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.05e-05/0.2442, allocations: 7.875 kB / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.756e-05/0.2442, allocations: 3.984 kB / 0.7853 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005207/0.2448, allocations: 154.5 kB / 0.7855 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.54e-05/0.2448, allocations: 27.92 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.148e-05/0.2449, allocations: 7.938 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.992e-05/0.2449, allocations: 23.97 kB / 0.7855 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.472e-05/0.245, allocations: 11.88 kB / 0.7855 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.245, allocations: 0 / 0.7855 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005001/0.2455, allocations: 343.4 kB / 0.7859 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.649e-05/0.2456, allocations: 11.92 kB / 0.7859 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.754e-05/0.2456, allocations: 15.94 kB / 0.7859 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002593/0.2458, allocations: 155.9 kB / 0.786 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2459, allocations: 3.938 kB / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.453e-06/0.2459, allocations: 0 / 0.7861 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2459, allocations: 0 / 0.7861 GB, free: 10.69 MB / 0.6075 GB 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.0004314/0.2463, allocations: 367.4 kB / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.2464, allocations: 8.031 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.142e-05/0.2464, allocations: 42.69 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.108e-05/0.2464, allocations: 4.938 kB / 0.7865 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000113/0.2466, allocations: 168.3 kB / 0.7866 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.308e-05/0.2466, allocations: 4.375 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.233e-05/0.2466, allocations: 4.375 kB / 0.7866 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001134/0.2467, allocations: 50.23 kB / 0.7867 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2467, allocations: 3.938 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.2468, allocations: 8 kB / 0.7867 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2468, allocations: 4 kB / 0.7867 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.453e-05/0.2468, allocations: 11.98 kB / 0.7867 GB, free: 9.926 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001677/0.247, allocations: 173.5 kB / 0.7869 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.2471, allocations: 58.55 kB / 0.7869 GB, free: 9.641 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.045e-05/0.2472, allocations: 24.86 kB / 0.7869 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.755e-05/0.2472, allocations: 0 / 0.7869 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.2472, allocations: 46.55 kB / 0.787 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.2472, allocations: 0 / 0.787 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.001123/0.2483, allocations: 0.581 MB / 0.7876 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.2484, allocations: 63.39 kB / 0.7876 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/0.2485, allocations: 97.8 kB / 0.7877 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.2485, allocations: 25.8 kB / 0.7877 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.875e-05/0.2485, allocations: 88.08 kB / 0.7878 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.721e-05/0.2486, allocations: 39.44 kB / 0.7879 GB, free: 8.547 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-05/0.2486, allocations: 25.72 kB / 0.7879 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.2487, allocations: 318.8 kB / 0.7882 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.292e-05/0.2488, allocations: 24.11 kB / 0.7882 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.486e-05/0.2488, allocations: 20 kB / 0.7882 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.154e-05/0.2489, allocations: 60.84 kB / 0.7883 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2489, allocations: 0 / 0.7883 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001419/0.2491, allocations: 104.8 kB / 0.7884 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.2491, allocations: 8 kB / 0.7884 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.2491, allocations: 0 / 0.7884 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.2491, allocations: 0 / 0.7884 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.2492, allocations: 27.92 kB / 0.7884 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.2492, allocations: 0 / 0.7884 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.397e-05/0.2493, allocations: 0 / 0.7884 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.2493, allocations: 8 kB / 0.7884 GB, free: 7.941 MB / 0.6075 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 (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 7.047e-05/0.2494, allocations: 113.8 kB / 0.7885 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.2494, allocations: 7.938 kB / 0.7885 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001944/0.2496, allocations: 101.6 kB / 0.7886 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2496, allocations: 8 kB / 0.7886 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.2496, allocations: 3.984 kB / 0.7887 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.2496, allocations: 0 / 0.7887 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003748/0.25, allocations: 358.4 kB / 0.789 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.25, allocations: 0 / 0.789 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.2501, allocations: 27.92 kB / 0.789 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2501, allocations: 0 / 0.789 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.2502, allocations: 4 kB / 0.789 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2502, allocations: 0 / 0.789 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2502, allocations: 0 / 0.789 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.2504, allocations: 211.4 kB / 0.7892 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.791e-05/0.2505, allocations: 93.09 kB / 0.7893 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.2505, allocations: 0 / 0.7893 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.944e-05/0.2506, allocations: 8 kB / 0.7893 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.896e-05/0.2506, allocations: 7.922 kB / 0.7893 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.2506, allocations: 4 kB / 0.7893 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.38e-05/0.2506, allocations: 79.28 kB / 0.7894 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2507, allocations: 0 / 0.7894 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002688/0.2509, allocations: 39.94 kB / 0.7894 GB, free: 6.785 MB / 0.6075 GB 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.0005584/0.2515, allocations: 0.7831 MB / 0.7902 GB, free: 5.977 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001438/0.2516, allocations: 67.91 kB / 0.7903 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2517, allocations: 0 / 0.7903 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.334e-05/0.2517, allocations: 39.97 kB / 0.7903 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.252, allocations: 10.84 kB / 0.7903 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.2534, allocations: 1.497 MB / 0.7918 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.2536, allocations: 0.6846 MB / 0.7925 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.914e-05/0.2536, allocations: 15.95 kB / 0.7925 GB, free: 3.562 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.862e-05/0.2537, allocations: 26.25 kB / 0.7925 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.2537, allocations: 0 / 0.7925 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01909/0.2728, allocations: 2.024 MB / 0.7945 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.611/7.883, allocations: 9.875 kB / 0.7945 GB, free: 1.664 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)