Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/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(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.001705/0.001705, 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.001835/0.001835, allocations: 196.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 1.441/1.441, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.86/2.86, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 60.62 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2533, allocations: 159.1 MB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002777/0.2561, allocations: 1.482 MB / 1.066 GB, free: 12.77 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.2572, allocations: 0.6323 MB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.472e-05/0.2573, allocations: 0 / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.735e-05/0.2573, allocations: 3.938 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.776e-05/0.2574, allocations: 7.922 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005638/0.258, allocations: 161.1 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.544e-05/0.2581, allocations: 55.83 kB / 1.066 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.636e-05/0.2581, allocations: 8 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.181e-05/0.2582, allocations: 19.92 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.924e-05/0.2582, allocations: 27.86 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.2582, allocations: 7.984 kB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005404/0.2588, allocations: 343.3 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.116e-05/0.2588, allocations: 15.97 kB / 1.067 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.138e-05/0.2589, allocations: 23.86 kB / 1.067 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003035/0.2592, allocations: 179.8 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.2592, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.102e-06/0.2592, allocations: 0 / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.2592, allocations: 4 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006086/0.2598, allocations: 399.3 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.2599, allocations: 8.031 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.938e-05/0.2599, allocations: 34.75 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.206e-05/0.2599, allocations: 8.844 kB / 1.067 GB, free: 10.8 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.2601, allocations: 168.4 kB / 1.068 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.2601, allocations: 4.375 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.813e-05/0.2601, allocations: 8.375 kB / 1.068 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002448/0.2604, allocations: 94.08 kB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.2604, allocations: 3.938 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.789e-06/0.2604, allocations: 4 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.2604, allocations: 0 / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002603/0.2607, allocations: 47.95 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005523/0.2613, allocations: 332.5 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.2616, allocations: 78.53 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.2617, allocations: 28.84 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.2617, allocations: 4.141 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.2618, allocations: 46.55 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.2618, allocations: 0 / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001725/0.2635, allocations: 0.6422 MB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.2636, allocations: 59.34 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.669e-05/0.2637, allocations: 101.8 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.2637, allocations: 25.7 kB / 1.069 GB, free: 8.938 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.588e-05/0.2637, allocations: 96.03 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/0.2638, allocations: 35.45 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.2638, allocations: 29.72 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001362/0.264, allocations: 322.8 kB / 1.069 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001382/0.2641, allocations: 23.98 kB / 1.069 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.2643, allocations: 36.97 kB / 1.07 GB, free: 8.387 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.2645, allocations: 73.83 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.2646, allocations: 0 / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003519/0.2649, allocations: 122.5 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.2649, allocations: 4 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.366e-06/0.265, allocations: 0 / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.265, allocations: 4 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.2651, allocations: 27.98 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.2651, allocations: 3.938 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.922e-05/0.2652, allocations: 7.984 kB / 1.07 GB, free: 8.141 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.148e-05/0.2652, allocations: 4 kB / 1.07 GB, free: 8.137 MB / 0.8262 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 8.831e-05/0.2653, allocations: 117.8 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.337e-05/0.2654, allocations: 4 kB / 1.07 GB, free: 8.008 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003977/0.2658, allocations: 137.4 kB / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2658, allocations: 0 / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2658, allocations: 3.938 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-06/0.2658, allocations: 0 / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006166/0.2664, allocations: 386.6 kB / 1.07 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.2664, allocations: 3.938 kB / 1.07 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001581/0.2666, allocations: 28.06 kB / 1.07 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.2666, allocations: 11.86 kB / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.2666, allocations: 0 / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.2666, allocations: 4 kB / 1.07 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2666, allocations: 0 / 1.07 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.2672, allocations: 247.4 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.463e-05/0.2672, allocations: 81.02 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.2673, allocations: 11.97 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.2674, allocations: 7.984 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.302e-05/0.2674, allocations: 7.984 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.2674, allocations: 4 kB / 1.071 GB, free: 6.996 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.743e-05/0.2675, allocations: 83.22 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2675, allocations: 4.062 kB / 1.071 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002799/0.2678, allocations: 36 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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.000937/0.2687, allocations: 0.8159 MB / 1.072 GB, free: 6.035 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003446/0.2691, allocations: 92.05 kB / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.2691, allocations: 0 / 1.072 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.2693, allocations: 47.86 kB / 1.072 GB, free: 5.898 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000276/0.2695, allocations: 12 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.2717, allocations: 1.591 MB / 1.073 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.272, allocations: 0.6923 MB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.362e-05/0.2721, allocations: 20.73 kB / 1.074 GB, free: 3.48 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.033e-05/0.2722, allocations: 27.36 kB / 1.074 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of SimCode: time 2.9e-07/0.2722, allocations: 0 / 1.074 GB, free: 3.453 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.296, allocations: 2.289 MB / 1.076 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.576/7.872, allocations: 8.438 kB / 1.076 GB, free: 1.32 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.csv --start-time -2 --stop-time 2 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)