Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001568/0.001568, allocations: 106.3 kB / 16.41 MB, free: 6.488 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.001664/0.001664, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.418/1.418, 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.27/2.27, allocations: 390.2 MB / 0.6655 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.91 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9633/0.9646, allocations: 140.4 MB / 1.089 GB, free: 5.801 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002352/0.967, allocations: 1.273 MB / 1.09 GB, free: 4.91 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001018/0.968, allocations: 0.6135 MB / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.509e-05/0.9681, allocations: 0 / 1.09 GB, free: 4.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.289e-05/0.9681, allocations: 4.734 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.045e-05/0.9681, allocations: 1.625 kB / 1.09 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.9687, allocations: 148.9 kB / 1.091 GB, free: 4.41 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.986e-05/0.9688, allocations: 28.45 kB / 1.091 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.579e-05/0.9689, allocations: 2.062 kB / 1.091 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.282e-05/0.9689, allocations: 5.266 kB / 1.091 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.205e-05/0.969, allocations: 12.44 kB / 1.091 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.969, allocations: 0.9062 kB / 1.091 GB, free: 4.387 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005948/0.9696, allocations: 346.4 kB / 1.091 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.317e-05/0.9696, allocations: 2.453 kB / 1.091 GB, free: 4.285 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.594e-05/0.9696, allocations: 7.5 kB / 1.091 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002989/0.9699, allocations: 152.2 kB / 1.091 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.9699, allocations: 0 / 1.091 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9699, allocations: 1.156 kB / 1.091 GB, free: 4.23 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.77e-06/0.97, allocations: 4 kB / 1.091 GB, free: 4.227 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003884/0.9704, allocations: 353.3 kB / 1.091 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.9704, allocations: 10.7 kB / 1.091 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.86e-05/0.9704, allocations: 14.28 kB / 1.092 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.943e-05/0.9705, allocations: 166.3 kB / 1.092 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-06/0.9705, allocations: 5.266 kB / 1.092 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.558e-05/0.9706, allocations: 2.719 kB / 1.092 GB, free: 3.637 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001083/0.9707, allocations: 40.27 kB / 1.092 GB, free: 3.602 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.9707, allocations: 4.188 kB / 1.092 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.9707, allocations: 5.562 kB / 1.092 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.9707, allocations: 4.656 kB / 1.092 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.392e-05/0.9708, allocations: 11.59 kB / 1.092 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000149/0.9709, allocations: 155.8 kB / 1.092 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.9711, allocations: 43.14 kB / 1.092 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.519e-05/0.9712, allocations: 18.05 kB / 1.092 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.9712, allocations: 5.484 kB / 1.092 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.9712, allocations: 35.97 kB / 1.092 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.9712, allocations: 0 / 1.092 GB, free: 3.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005957/0.9718, allocations: 301.6 kB / 1.092 GB, free: 3.027 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.32e-05/0.9719, allocations: 52.5 kB / 1.092 GB, free: 2.965 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.196e-05/0.9719, allocations: 100.3 kB / 1.092 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.9719, allocations: 25.7 kB / 1.092 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.949e-05/0.972, allocations: 89.08 kB / 1.093 GB, free: 2.742 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.972, allocations: 32.62 kB / 1.093 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-05/0.972, allocations: 23.33 kB / 1.093 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.029e-05/0.9721, allocations: 314.3 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.785e-05/0.9721, allocations: 11.84 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.272e-05/0.9721, allocations: 12.27 kB / 1.093 GB, free: 2.371 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.604e-05/0.9722, allocations: 28.66 kB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.51e-07/0.9722, allocations: 0 / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.869e-05/0.9723, allocations: 67.88 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.9723, allocations: 10.55 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.9723, allocations: 240 / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.9724, allocations: 0.7188 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.515e-05/0.9724, allocations: 15.3 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.9724, allocations: 5.438 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.7e-05/0.9725, allocations: 0 / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.9725, allocations: 2.031 kB / 1.093 GB, free: 2.297 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 (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 5.722e-05/0.9725, allocations: 112.5 kB / 1.093 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.522e-05/0.9726, allocations: 15.08 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.9727, allocations: 68.84 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.9727, allocations: 1 kB / 1.093 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.9727, allocations: 4.781 kB / 1.093 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.9727, allocations: 4.781 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002631/0.973, allocations: 320.9 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.973, allocations: 0.9062 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.45e-05/0.9731, allocations: 15.02 kB / 1.094 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.9731, allocations: 4.938 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.9731, allocations: 2.172 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.9731, allocations: 0.75 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.9731, allocations: 1.453 kB / 1.094 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.9733, allocations: 176.7 kB / 1.094 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.232e-05/0.9733, allocations: 85.56 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.25e-05/0.9733, allocations: 0.9688 kB / 1.094 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.416e-05/0.9734, allocations: 9.875 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.246e-05/0.9734, allocations: 4.062 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.462e-06/0.9734, allocations: 2.844 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.082e-05/0.9735, allocations: 82.62 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of sort global known variables: time 5.91e-07/0.9735, allocations: 0.6875 kB / 1.094 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002511/0.9737, allocations: 27.53 kB / 1.094 GB, free: 1.418 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0001772/0.9739, allocations: 120.9 kB / 1.094 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001152/0.974, allocations: 36.42 kB / 1.094 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.974, allocations: 1.406 kB / 1.094 GB, free: 1.312 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.016e-05/0.9741, allocations: 19.58 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002222/0.9743, allocations: 10.17 kB / 1.094 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003843/0.9747, allocations: 219.4 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001169/0.9748, allocations: 0.6805 MB / 1.095 GB, free: 412 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.119e-05/0.9749, allocations: 10.47 kB / 1.095 GB, free: 404 kB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.9749, allocations: 0.8438 kB / 1.095 GB, free: 404 kB / 0.8575 GB Notification: Performance of Templates: time 0.002811/0.9777, allocations: 0.788 MB / 1.096 GB, free: 352 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1)