Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.00156/0.00156, 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.001782/0.001782, allocations: 194.2 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.387/1.387, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.71/1.71, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.002124/0.002124, allocations: 66.84 kB / 0.6716 GB, free: 26.27 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2345, allocations: 114.6 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002733/0.2373, allocations: 1.272 MB / 0.7847 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.000988/0.2383, allocations: 0.611 MB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.329e-05/0.2383, allocations: 0 / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.378e-05/0.2384, allocations: 3.938 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 3.444e-05/0.2384, allocations: 7.938 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005523/0.239, allocations: 154.6 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.31e-05/0.2391, allocations: 19.92 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.52e-05/0.2391, allocations: 0 / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.416e-05/0.2391, allocations: 8 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.758e-05/0.2392, allocations: 11.92 kB / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.2392, allocations: 0 / 0.7855 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005005/0.2397, allocations: 347.3 kB / 0.7858 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.237e-05/0.2397, allocations: 8 kB / 0.7859 GB, free: 10.94 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.638e-05/0.2398, allocations: 11.92 kB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.24, allocations: 147.9 kB / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.24, allocations: 0 / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.943e-06/0.2401, allocations: 0 / 0.786 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.2401, allocations: 0 / 0.786 GB, free: 10.78 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004401/0.2405, allocations: 367.3 kB / 0.7864 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.2405, allocations: 8.031 kB / 0.7864 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.444e-05/0.2406, allocations: 34.75 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.45e-05/0.2406, allocations: 4.938 kB / 0.7864 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.2407, allocations: 172.4 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.496e-06/0.2408, allocations: 8.312 kB / 0.7866 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.2408, allocations: 384 / 0.7866 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.079e-05/0.2409, allocations: 42.25 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.2409, allocations: 3.938 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.995e-06/0.2409, allocations: 0 / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.2409, allocations: 0 / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.268e-05/0.241, allocations: 4 kB / 0.7866 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.2411, allocations: 161.7 kB / 0.7868 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.2413, allocations: 46.55 kB / 0.7868 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.707e-05/0.2413, allocations: 20.94 kB / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.2414, allocations: 0 / 0.7868 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.2414, allocations: 34.56 kB / 0.7869 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=4): time 7.91e-07/0.2414, allocations: 0 / 0.7869 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0005905/0.242, allocations: 322 kB / 0.7872 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.242, allocations: 55.34 kB / 0.7872 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.947e-05/0.2421, allocations: 110.1 kB / 0.7873 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.2421, allocations: 25.7 kB / 0.7874 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.881e-05/0.2422, allocations: 80.14 kB / 0.7874 GB, free: 9.055 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.802e-05/0.2422, allocations: 19.72 kB / 0.7875 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/0.2422, allocations: 21.7 kB / 0.7875 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.2424, allocations: 314.8 kB / 0.7878 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.411e-05/0.2424, allocations: 12 kB / 0.7878 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.311e-05/0.2425, allocations: 19.92 kB / 0.7878 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.419e-05/0.2425, allocations: 28.86 kB / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/0.2425, allocations: 0 / 0.7878 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.326e-05/0.2426, allocations: 69.62 kB / 0.7879 GB, free: 8.555 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.2426, allocations: 6.656 kB / 0.7879 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.2427, allocations: 0 / 0.7879 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.2427, allocations: 0 / 0.7879 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.709e-05/0.2427, allocations: 8 kB / 0.7879 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.2427, allocations: 7.984 kB / 0.7879 GB, free: 8.535 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.743e-05/0.2428, allocations: 7.938 kB / 0.7879 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.2428, allocations: 0 / 0.7879 GB, free: 8.527 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 (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 7.102e-05/0.2428, allocations: 113.8 kB / 0.788 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.179e-05/0.2429, allocations: 3.938 kB / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001335/0.243, allocations: 69.59 kB / 0.7881 GB, free: 8.324 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.243, allocations: 7.984 kB / 0.7881 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.243, allocations: 0 / 0.7881 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.243, allocations: 0 / 0.7881 GB, free: 8.316 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.2433, allocations: 323.5 kB / 0.7884 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2434, allocations: 0 / 0.7884 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.96e-05/0.2434, allocations: 12 kB / 0.7884 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.2434, allocations: 0 / 0.7884 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.2434, allocations: 4 kB / 0.7884 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2434, allocations: 3.984 kB / 0.7884 GB, free: 7.922 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2435, allocations: 7.938 kB / 0.7885 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/0.2436, allocations: 181.3 kB / 0.7886 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.447e-05/0.2437, allocations: 85.12 kB / 0.7887 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.2437, allocations: 0 / 0.7887 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.202e-05/0.2438, allocations: 3.938 kB / 0.7887 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.79e-05/0.2438, allocations: 7.938 kB / 0.7887 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.2438, allocations: 4 kB / 0.7887 GB, free: 7.602 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.824e-05/0.2439, allocations: 83.27 kB / 0.7888 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2439, allocations: 0 / 0.7888 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002354/0.2441, allocations: 24.06 kB / 0.7888 GB, free: 7.496 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0004901/0.2446, allocations: 0.7366 MB / 0.7895 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001146/0.2447, allocations: 35.92 kB / 0.7896 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2447, allocations: 64 / 0.7896 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.709e-05/0.2448, allocations: 20 kB / 0.7896 GB, free: 6.676 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.245, allocations: 6.844 kB / 0.7896 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.2461, allocations: 1.324 MB / 0.7909 GB, free: 5.262 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.2464, allocations: 0.6807 MB / 0.7916 GB, free: 4.555 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.12e-05/0.2464, allocations: 8.062 kB / 0.7916 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.961e-05/0.2464, allocations: 15.44 kB / 0.7916 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of SimCode: time 2.5e-07/0.2465, allocations: 0 / 0.7916 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.2653, allocations: 1.591 MB / 0.7931 GB, free: 3.09 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.621/7.887, allocations: 21.58 kB / 0.7932 GB, free: 3.074 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.csv --start-time -2 --stop-time 2 --timeout 50 --relative-tolerance 1e-08 Buildings_8_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_8_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1)