Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_maint_7_0_x_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_maint_7_0_x_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/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.412/1.412, allocations: 249.3 MB / 261.8 MB, free: 5.824 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.1 MB / 0.572 GB, free: 10.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009656/0.0009658, allocations: 86.55 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.395e-05/3.399e-05, allocations: 4 kB / 0.788 GB, free: 96.98 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1956, allocations: 106.3 MB / 0.8919 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6823/0.8779, allocations: 133.2 MB / 1.022 GB, free: 1.508 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/0.8783, allocations: 84.44 kB / 1.022 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01316/0.8914, allocations: 4.261 MB / 1.026 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.713e-06/0.8915, allocations: 0 / 1.026 GB, free: 13.85 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.897e-06/0.8915, allocations: 4 kB / 1.026 GB, free: 13.85 MB / 0.6511 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.0004978/0.892, allocations: 381.3 kB / 1.027 GB, free: 13.44 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.8921, allocations: 8.031 kB / 1.027 GB, free: 13.43 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.8921, allocations: 38.06 kB / 1.027 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.387e-05/0.8922, allocations: 7.906 kB / 1.027 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.8923, allocations: 171 kB / 1.027 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.731e-05/0.8924, allocations: 4 kB / 1.027 GB, free: 13.17 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.8924, allocations: 7 kB / 1.027 GB, free: 13.16 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001558/0.8925, allocations: 67.48 kB / 1.027 GB, free: 13.11 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.8926, allocations: 3.938 kB / 1.027 GB, free: 13.1 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.453e-05/0.8926, allocations: 8 kB / 1.027 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.8926, allocations: 0 / 1.027 GB, free: 13.09 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.913e-05/0.8927, allocations: 28.81 kB / 1.027 GB, free: 13.07 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006136/0.8933, allocations: 327.7 kB / 1.027 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001217/0.8934, allocations: 66.69 kB / 1.027 GB, free: 12.66 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.481e-05/0.8935, allocations: 16.45 kB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.8935, allocations: 3.25 kB / 1.027 GB, free: 12.65 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.794e-05/0.8936, allocations: 38.56 kB / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.8936, allocations: 0 / 1.027 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of matching and sorting (n=11): time 0.001115/0.8947, allocations: 0.5774 MB / 1.028 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.8948, allocations: 59.34 kB / 1.028 GB, free: 11.91 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.527e-05/0.8948, allocations: 89 kB / 1.028 GB, free: 11.82 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.8949, allocations: 29.58 kB / 1.028 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 6.007e-05/0.8949, allocations: 88.03 kB / 1.028 GB, free: 11.7 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.895, allocations: 42.02 kB / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-06/0.895, allocations: 0 / 1.028 GB, free: 11.66 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.8951, allocations: 322.2 kB / 1.028 GB, free: 11.34 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.628e-05/0.8952, allocations: 22.31 kB / 1.029 GB, free: 11.32 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.171e-05/0.8952, allocations: 27.44 kB / 1.029 GB, free: 11.3 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.022e-05/0.8953, allocations: 23.92 kB / 1.029 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.8953, allocations: 3.938 kB / 1.029 GB, free: 11.29 MB / 0.6511 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001576/0.8955, allocations: 99.2 kB / 1.029 GB, free: 11.2 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/0.8955, allocations: 9.359 kB / 1.029 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.8955, allocations: 0 / 1.029 GB, free: 11.19 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.8955, allocations: 4 kB / 1.029 GB, free: 11.18 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001622/0.8957, allocations: 31.17 kB / 1.029 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.8957, allocations: 0 / 1.029 GB, free: 11.16 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.955e-05/0.8958, allocations: 15.92 kB / 1.029 GB, free: 11.14 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.174e-05/0.8958, allocations: 4 kB / 1.029 GB, free: 11.14 MB / 0.6511 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.216e-05/0.8959, allocations: 104.4 kB / 1.029 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.8959, allocations: 7.938 kB / 1.029 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002411/0.8962, allocations: 118.1 kB / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.8962, allocations: 0 / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.8962, allocations: 0 / 1.029 GB, free: 10.93 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.8962, allocations: 4 kB / 1.029 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004076/0.8966, allocations: 363.8 kB / 1.029 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.8966, allocations: 3.953 kB / 1.029 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001583/0.8968, allocations: 31.86 kB / 1.029 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.8968, allocations: 0 / 1.029 GB, free: 10.51 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.204e-05/0.8968, allocations: 3.984 kB / 1.029 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.8968, allocations: 4 kB / 1.029 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.8969, allocations: 3.938 kB / 1.029 GB, free: 10.5 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000275/0.8971, allocations: 221.1 kB / 1.03 GB, free: 10.29 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.178e-05/0.8972, allocations: 85.09 kB / 1.03 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.8972, allocations: 0 / 1.03 GB, free: 10.19 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.8974, allocations: 15.42 kB / 1.03 GB, free: 10.18 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.973e-05/0.8974, allocations: 64 / 1.03 GB, free: 10.18 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.827e-06/0.8974, allocations: 8 kB / 1.03 GB, free: 10.17 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 4.087e-05/0.8974, allocations: 87.02 kB / 1.03 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8975, allocations: 0 / 1.03 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002865/0.8977, allocations: 43.75 kB / 1.03 GB, free: 10.05 MB / 0.6511 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006861/0.8984, allocations: 0.7968 MB / 1.031 GB, free: 9.254 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001515/0.8986, allocations: 72.98 kB / 1.031 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.8986, allocations: 0 / 1.031 GB, free: 9.199 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.234e-05/0.8987, allocations: 34.73 kB / 1.031 GB, free: 9.176 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.8989, allocations: 4.766 kB / 1.031 GB, free: 9.172 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006941/0.8996, allocations: 320 kB / 1.031 GB, free: 8.844 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002902/0.8999, allocations: 0.6965 MB / 1.032 GB, free: 8.121 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.828e-05/0.8999, allocations: 8.672 kB / 1.032 GB, free: 8.113 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.361e-05/0.9, allocations: 26.67 kB / 1.032 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of SimCode: time 2.51e-07/0.9, allocations: 0 / 1.032 GB, free: 8.094 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.9139, allocations: 2.014 MB / 1.034 GB, free: 6.289 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/0.9141, allocations: 209.8 kB / 1.034 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.583, allocations: 0 / 1.034 GB, free: 6.062 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_maint.7.0.x_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)