Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001671/0.001671, allocations: 106.6 kB / 16.41 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001826/0.001826, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.276/2.276, allocations: 390.3 MB / 0.6655 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 67.91 kB / 0.9515 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9964/0.9979, allocations: 140.4 MB / 1.089 GB, free: 5.52 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002231/1, allocations: 1.276 MB / 1.09 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009729/1.001, allocations: 0.6208 MB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.524e-05/1.001, allocations: 3.938 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.229e-05/1.001, allocations: 1.953 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.691e-05/1.001, allocations: 4.547 kB / 1.09 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005933/1.002, allocations: 154.8 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.969e-05/1.002, allocations: 26.44 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.356e-05/1.002, allocations: 2.719 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.298e-05/1.002, allocations: 11.64 kB / 1.091 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.973e-05/1.002, allocations: 19.8 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/1.002, allocations: 1.281 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006755/1.003, allocations: 341.9 kB / 1.091 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.221e-05/1.003, allocations: 12.19 kB / 1.091 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.456e-05/1.003, allocations: 17.77 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003401/1.003, allocations: 153.9 kB / 1.091 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.767e-06/1.003, allocations: 0 / 1.091 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.465e-06/1.003, allocations: 4.5 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.342e-06/1.003, allocations: 1.156 kB / 1.091 GB, free: 3.926 MB / 0.8575 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.0004039/1.004, allocations: 367.2 kB / 1.092 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/1.004, allocations: 10.05 kB / 1.092 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.715e-05/1.004, allocations: 7.156 kB / 1.092 GB, free: 3.539 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.897e-05/1.004, allocations: 162.4 kB / 1.092 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/1.004, allocations: 7.875 kB / 1.092 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/1.004, allocations: 2.719 kB / 1.092 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001272/1.004, allocations: 54.72 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/1.004, allocations: 192 / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/1.004, allocations: 9.125 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/1.004, allocations: 1.125 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.672e-05/1.004, allocations: 18.56 kB / 1.092 GB, free: 3.285 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/1.004, allocations: 163 kB / 1.092 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001146/1.005, allocations: 64.48 kB / 1.092 GB, free: 3.047 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.251e-05/1.005, allocations: 28.64 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/1.005, allocations: 1.531 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/1.005, allocations: 32.75 kB / 1.092 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/1.005, allocations: 0 / 1.092 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001196/1.006, allocations: 0.595 MB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/1.006, allocations: 53.16 kB / 1.093 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.192e-05/1.006, allocations: 98.44 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/1.006, allocations: 26.48 kB / 1.093 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.21e-05/1.006, allocations: 80.92 kB / 1.093 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.508e-05/1.006, allocations: 39.61 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.586e-05/1.006, allocations: 28.77 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.888e-05/1.006, allocations: 318.7 kB / 1.093 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.795e-05/1.006, allocations: 22.08 kB / 1.093 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.521e-05/1.006, allocations: 23.14 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/1.006, allocations: 62.83 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/1.006, allocations: 1.719 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001618/1.007, allocations: 99.47 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/1.007, allocations: 5.281 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/1.007, allocations: 1.125 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/1.007, allocations: 5.672 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001129/1.007, allocations: 23.55 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/1.007, allocations: 1.344 kB / 1.094 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.516e-05/1.007, allocations: 5.5 kB / 1.094 GB, free: 1.699 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/1.007, allocations: 3.219 kB / 1.094 GB, free: 1.699 MB / 0.8575 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 6.318e-05/1.007, allocations: 112.4 kB / 1.094 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.935e-05/1.007, allocations: 11.06 kB / 1.094 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002088/1.007, allocations: 105.4 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/1.007, allocations: 6.094 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/1.007, allocations: 0 / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/1.007, allocations: 0.7969 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00041/1.008, allocations: 361 kB / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/1.008, allocations: 0 / 1.094 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/1.008, allocations: 23.94 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/1.008, allocations: 1.375 kB / 1.094 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/1.008, allocations: 5.672 kB / 1.094 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/1.008, allocations: 0.9688 kB / 1.094 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.008, allocations: 5 kB / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002513/1.008, allocations: 222.9 kB / 1.094 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/1.008, allocations: 78.86 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.83e-05/1.008, allocations: 1.734 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.583e-05/1.008, allocations: 2.797 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/1.008, allocations: 10.05 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/1.008, allocations: 4.453 kB / 1.094 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.686e-05/1.008, allocations: 81.14 kB / 1.095 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/1.008, allocations: 0 / 1.095 GB, free: 0.8047 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003037/1.009, allocations: 42.52 kB / 1.095 GB, free: 0.7891 MB / 0.8575 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.0002334/1.009, allocations: 131.4 kB / 1.095 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001718/1.009, allocations: 64.14 kB / 1.095 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.009, allocations: 0.875 kB / 1.095 GB, free: 0.6719 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.856e-05/1.009, allocations: 37.36 kB / 1.095 GB, free: 0.6602 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/1.009, allocations: 10.72 kB / 1.095 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005646/1.01, allocations: 315.9 kB / 1.095 GB, free: 396 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/1.01, allocations: 0.6891 MB / 1.096 GB, free: 15.69 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.59e-05/1.01, allocations: 13.91 kB / 1.096 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of SimCode: time 2.41e-07/1.01, allocations: 0.7188 kB / 1.096 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of Templates: time 0.003521/1.014, allocations: 1.132 MB / 1.097 GB, free: 15.58 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1)