Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|pipe1.port_a.p|pipe1.port_b.p|pipe1.port_b.m_flow|pipe1.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002657/0.002661, allocations: 350.7 kB / 15.95 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.466/3.466, allocations: 341.5 MB / 358.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003559/0.003559, allocations: 229.1 kB / 397.9 MB, free: 4.977 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5299/0.5299, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006522/0.0006525, allocations: 16 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08516/0.08585, allocations: 48.71 MB / 0.6068 GB, free: 4.637 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.3043/0.3902, allocations: 11.57 MB / 0.6181 GB, free: 87.43 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.009573/0.3998, allocations: 5.046 MB / 0.623 GB, free: 83.93 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.4009, allocations: 21.38 kB / 0.623 GB, free: 83.92 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007899/0.4017, allocations: 157.3 kB / 0.6232 GB, free: 83.84 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:772:36-773:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Fluid/Sources.mo:770:36-771:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.002764/0.4045, allocations: 0.6507 MB / 0.6238 GB, free: 83.5 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005338/0.4099, allocations: 1.172 MB / 0.6249 GB, free: 83 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002955/0.4128, allocations: 1.41 MB / 0.6263 GB, free: 82.46 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007649/0.4137, allocations: 259.8 kB / 0.6266 GB, free: 82.39 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.415, allocations: 419.4 kB / 0.627 GB, free: 82.24 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001305/0.4164, allocations: 437 kB / 0.6274 GB, free: 82.1 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000148/0.4166, allocations: 19.25 kB / 0.6274 GB, free: 82.1 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003054/0.4196, allocations: 0.9321 MB / 0.6283 GB, free: 81.86 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003859/0.4201, allocations: 142.3 kB / 0.6284 GB, free: 81.81 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002981/0.4204, allocations: 119.9 kB / 0.6286 GB, free: 81.74 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002502/0.4229, allocations: 0.8866 MB / 0.6294 GB, free: 81.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.423, allocations: 0 / 0.6294 GB, free: 81.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.423, allocations: 1.812 kB / 0.6294 GB, free: 81.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.225e-05/0.423, allocations: 0 / 0.6294 GB, free: 81.54 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002351/0.4254, allocations: 0.8451 MB / 0.6302 GB, free: 80.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.4254, allocations: 10.05 kB / 0.6303 GB, free: 80.88 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00043/0.4259, allocations: 62.09 kB / 0.6303 GB, free: 80.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001009/0.4269, allocations: 426 kB / 0.6307 GB, free: 80.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.639e-05/0.427, allocations: 24.88 kB / 0.6307 GB, free: 80.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.562e-05/0.4271, allocations: 30.67 kB / 0.6308 GB, free: 80.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.4283, allocations: 0.5042 MB / 0.6313 GB, free: 80.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.4283, allocations: 1.281 kB / 0.6313 GB, free: 80.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/0.4284, allocations: 12.75 kB / 0.6313 GB, free: 80.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.44e-05/0.4285, allocations: 29.78 kB / 0.6313 GB, free: 80.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.4296, allocations: 444.1 kB / 0.6317 GB, free: 80.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004915/0.4346, allocations: 2.244 MB / 0.6339 GB, free: 78.4 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/0.4352, allocations: 212.9 kB / 0.6341 GB, free: 78.3 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002862/0.4355, allocations: 108.8 kB / 0.6342 GB, free: 78.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001844/0.4374, allocations: 0.9975 MB / 0.6352 GB, free: 77.38 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003626/0.4378, allocations: 145.8 kB / 0.6353 GB, free: 77.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 5.49e-06/0.4379, allocations: 0 / 0.6353 GB, free: 77.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008365/0.4387, allocations: 282.9 kB / 0.6356 GB, free: 77.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.4388, allocations: 159.4 kB / 0.6358 GB, free: 76.94 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009021/0.4397, allocations: 490.9 kB / 0.6362 GB, free: 76.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.849e-05/0.4398, allocations: 28.02 kB / 0.6363 GB, free: 76.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002458/0.44, allocations: 306.1 kB / 0.6365 GB, free: 76.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.947e-05/0.4401, allocations: 43.02 kB / 0.6366 GB, free: 76.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.4402, allocations: 9.438 kB / 0.6366 GB, free: 76.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4403, allocations: 352.7 kB / 0.6369 GB, free: 76.05 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.4406, allocations: 106.6 kB / 0.637 GB, free: 76.02 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.4411, allocations: 333.2 kB / 0.6374 GB, free: 75.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.4415, allocations: 200.9 kB / 0.6375 GB, free: 75.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.838e-06/0.4415, allocations: 2.312 kB / 0.6375 GB, free: 75.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001265/0.4428, allocations: 0.506 MB / 0.638 GB, free: 75.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002038/0.443, allocations: 342.5 kB / 0.6384 GB, free: 74.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2e-05/0.4431, allocations: 10.28 kB / 0.6384 GB, free: 74.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.997e-05/0.4431, allocations: 11.16 kB / 0.6384 GB, free: 74.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006349/0.4438, allocations: 91.02 kB / 0.6385 GB, free: 74.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.728e-05/0.4438, allocations: 15.19 kB / 0.6385 GB, free: 74.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000742/0.4446, allocations: 61.69 kB / 0.6385 GB, free: 74.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/0.4447, allocations: 28.86 kB / 0.6386 GB, free: 74.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.4447, allocations: 4.391 kB / 0.6386 GB, free: 74.85 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001138/0.4458, allocations: 469.1 kB / 0.639 GB, free: 74.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.4459, allocations: 7.594 kB / 0.639 GB, free: 74.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.4459, allocations: 12 kB / 0.639 GB, free: 74.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005234/0.4464, allocations: 85.78 kB / 0.6391 GB, free: 74.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.897e-05/0.4465, allocations: 13.48 kB / 0.6391 GB, free: 74.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.447, allocations: 44 kB / 0.6392 GB, free: 74.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.4471, allocations: 27.64 kB / 0.6392 GB, free: 74.58 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0004654/0.4476, allocations: 307.5 kB / 0.6395 GB, free: 74.3 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.4477, allocations: 49.36 kB / 0.6396 GB, free: 74.28 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008251/0.4485, allocations: 290.2 kB / 0.6398 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4486, allocations: 3.438 kB / 0.6398 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4486, allocations: 0 / 0.6398 GB, free: 74.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002319/0.4488, allocations: 126.3 kB / 0.64 GB, free: 73.98 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.449, allocations: 7 kB / 0.64 GB, free: 73.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003432/0.4493, allocations: 9.734 kB / 0.64 GB, free: 73.97 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.65e-05/0.4494, allocations: 13.27 kB / 0.64 GB, free: 73.96 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005985/0.45, allocations: 362.1 kB / 0.6403 GB, free: 73.68 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0006403/0.4507, allocations: 439.2 kB / 0.6407 GB, free: 73.34 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000166/0.4509, allocations: 80.8 kB / 0.6408 GB, free: 73.3 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005606/0.4514, allocations: 335.3 kB / 0.6411 GB, free: 73.1 MB / 362.7 MB Notification: Performance of Backend: time 6.22e-07/0.4515, allocations: 0 / 0.6411 GB, free: 73.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003338/0.4548, allocations: 0.9174 MB / 0.642 GB, free: 72.59 MB / 362.7 MB Notification: Performance of SimCode: time 0.002622/0.4575, allocations: 1.518 MB / 0.6435 GB, free: 71.38 MB / 362.7 MB Notification: Performance of Templates: time 0.02805/0.4856, allocations: 10.45 MB / 0.6537 GB, free: 64.38 MB / 362.7 MB "" Variables in the reference:time,pipe1.port_a.p,pipe1.port_b.p,pipe1.port_b.m_flow,pipe1.port_b.h_outflow Variables in the result:p_table.offset,p_table.startTime,p_table.table[1,1],p_table.table[1,2],p_table.table[2,1],p_table.table[2,2],pipe1.V,pipe1.allowFlowReversal,pipe1.crossArea,pipe1.diameter,pipe1.flowModel.Re_turbulent,pipe1.flowModel.allowFlowReversal,pipe1.flowModel.constantPressureLossCoefficient,pipe1.flowModel.continuousFlowReversal,pipe1.flowModel.crossAreas[1],pipe1.flowModel.crossAreas[2],pipe1.flowModel.dheights[1],pipe1.flowModel.dp_nominal,pipe1.flowModel.dp_small,pipe1.flowModel.from_dp,pipe1.flowModel.g,pipe1.flowModel.m,pipe1.flowModel.m_flow_nominal,pipe1.flowModel.m_flow_small,pipe1.flowModel.m_flow_start,pipe1.flowModel.m_flows[1],pipe1.flowModel.momentumDynamics,pipe1.flowModel.mu_nominal,pipe1.flowModel.n,pipe1.flowModel.nParallel,pipe1.flowModel.p_a_start,pipe1.flowModel.p_b_start,pipe1.flowModel.pathLengths[1],pipe1.flowModel.pathLengths_internal[1],pipe1.flowModel.rho_nominal,pipe1.flowModel.roughnesses[1],pipe1.flowModel.roughnesses[2],pipe1.flowModel.show_Res,pipe1.flowModel.useUpstreamScheme,pipe1.flowModel.use_Ib_flows,pipe1.flowModel.use_mu_nominal,pipe1.flowModel.use_rho_nominal,pipe1.height_ab,pipe1.isCircular,pipe1.length,pipe1.m_flow_start,pipe1.nParallel,pipe1.p_a_start,pipe1.p_b_start,pipe1.perimeter,pipe1.port_a.p,pipe1.port_a_exposesState,pipe1.port_b.h_outflow,pipe1.port_b.m_flow,pipe1.port_b.p,pipe1.port_b_exposesState,pipe1.roughness,pipe1.showDesignFlowDirection,sink.T,sink.X[1],sink.flowDirection,sink.medium.preferredMediumStates,sink.medium.standardOrderComponents,sink.nPorts,sink.p,sink.p_in_internal,source.T,source.X[1],source.flowDirection,source.medium.preferredMediumStates,source.medium.standardOrderComponents,source.nPorts,source.p,source.ports[1].p,system.T_ambient,system.T_start,system.allowFlowReversal,system.dp_small,system.energyDynamics,system.eps_m_flow,system.g,system.m_flow_nominal,system.m_flow_small,system.m_flow_start,system.massDynamics,system.momentumDynamics,system.p_ambient,system.p_start,system.substanceDynamics,system.traceDynamics,system.use_eps_Re,time