Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001524/0.001525, allocations: 113.1 kB / 16.41 MB, free: 6.492 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.001641/0.001641, allocations: 183 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.412/1.412, 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.264/2.264, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 55.91 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8576/0.8592, 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_m_flow_DerivativeCheck2): time 0.002518/0.8618, allocations: 1.472 MB / 1.09 GB, free: 4.496 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.8629, allocations: 0.6346 MB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.034e-05/0.8629, allocations: 1.219 kB / 1.091 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.718e-05/0.863, allocations: 5.25 kB / 1.091 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.073e-05/0.863, allocations: 5.453 kB / 1.091 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000579/0.8636, allocations: 162.9 kB / 1.091 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.965e-05/0.8637, allocations: 65.12 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.549e-05/0.8638, allocations: 3.828 kB / 1.091 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.932e-05/0.8638, allocations: 25.03 kB / 1.091 GB, free: 3.93 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.073e-05/0.8639, allocations: 21.52 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.694e-05/0.8639, allocations: 3.812 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005988/0.8645, allocations: 348.5 kB / 1.091 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.308e-05/0.8646, allocations: 13.75 kB / 1.091 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.67e-05/0.8646, allocations: 25.7 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003237/0.8649, allocations: 175.1 kB / 1.091 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.8649, allocations: 4.734 kB / 1.091 GB, free: 3.738 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.184e-06/0.865, allocations: 4 kB / 1.091 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.865, allocations: 1.125 kB / 1.091 GB, free: 3.734 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0005696/0.8655, allocations: 397.4 kB / 1.092 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.8656, allocations: 9.812 kB / 1.092 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.388e-05/0.8656, allocations: 4.219 kB / 1.092 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.167e-05/0.8657, allocations: 172.8 kB / 1.092 GB, free: 3.137 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.618e-05/0.8658, allocations: 7.375 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.266e-05/0.8658, allocations: 4.625 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000243/0.866, allocations: 87.66 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.8661, allocations: 0.9375 kB / 1.092 GB, free: 3.078 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.8661, allocations: 4.656 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.8661, allocations: 5.562 kB / 1.092 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.8663, allocations: 51.66 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005025/0.8668, allocations: 317.8 kB / 1.093 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000278/0.8671, allocations: 83.77 kB / 1.093 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000107/0.8673, allocations: 27.8 kB / 1.093 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.8673, allocations: 9.797 kB / 1.093 GB, free: 2.703 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.8673, allocations: 36.34 kB / 1.093 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.8673, allocations: 4 kB / 1.093 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001562/0.8689, allocations: 0.6437 MB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.8689, allocations: 53.77 kB / 1.093 GB, free: 2.07 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.971e-05/0.869, allocations: 105.3 kB / 1.093 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.869, allocations: 26.61 kB / 1.093 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.052e-05/0.8691, allocations: 96.62 kB / 1.094 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.8691, allocations: 39.02 kB / 1.094 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.804e-05/0.8691, allocations: 28.62 kB / 1.094 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.205e-05/0.8692, allocations: 315.6 kB / 1.094 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.8693, allocations: 39.09 kB / 1.094 GB, free: 1.457 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.8695, allocations: 33.42 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.8697, allocations: 71.64 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.22e-07/0.8697, allocations: 0 / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003128/0.87, allocations: 119.1 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.8701, allocations: 5.906 kB / 1.094 GB, free: 1.367 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.8701, allocations: 4 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.8701, allocations: 1.094 kB / 1.094 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.8703, allocations: 33.31 kB / 1.094 GB, free: 1.355 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.8703, allocations: 5.203 kB / 1.094 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.07e-05/0.8703, allocations: 8.938 kB / 1.094 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.8704, allocations: 3.875 kB / 1.094 GB, free: 1.348 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.46e-05/0.8704, allocations: 113.9 kB / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.8705, allocations: 3 kB / 1.094 GB, free: 1.23 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003772/0.8709, allocations: 133.4 kB / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.8709, allocations: 2.562 kB / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.8709, allocations: 0 / 1.094 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.8709, allocations: 5.5 kB / 1.094 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005176/0.8714, allocations: 387.5 kB / 1.095 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.8714, allocations: 0 / 1.095 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001532/0.8716, allocations: 33.23 kB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.8716, allocations: 0.75 kB / 1.095 GB, free: 0.8008 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.8716, allocations: 6.422 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.8716, allocations: 0.7812 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.8716, allocations: 0.7969 kB / 1.095 GB, free: 0.7969 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004947/0.8721, allocations: 247.9 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.305e-05/0.8722, allocations: 87.36 kB / 1.095 GB, free: 0.5273 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.8722, allocations: 6.062 kB / 1.095 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.8723, allocations: 14.2 kB / 1.095 GB, free: 0.5156 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.047e-05/0.8723, allocations: 10 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.8723, allocations: 3.734 kB / 1.095 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.51e-05/0.8724, allocations: 84.59 kB / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8724, allocations: 0 / 1.095 GB, free: 444 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003118/0.8727, allocations: 39.25 kB / 1.095 GB, free: 432 kB / 0.8575 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.0002428/0.8729, allocations: 136.5 kB / 1.095 GB, free: 328 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003499/0.8733, allocations: 80.89 kB / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.8733, allocations: 0 / 1.096 GB, free: 312 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000144/0.8735, allocations: 46.44 kB / 1.096 GB, free: 300 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.8738, allocations: 13.47 kB / 1.096 GB, free: 292 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006461/0.8744, allocations: 343.7 kB / 1.096 GB, free: 8 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.8748, allocations: 0.6992 MB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.814e-05/0.8748, allocations: 15.77 kB / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of SimCode: time 2.71e-07/0.8748, allocations: 0 / 1.097 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of Templates: time 0.004093/0.8789, allocations: 1.314 MB / 1.098 GB, free: 15.18 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1)