Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002715/0.002719, allocations: 368.3 kB / 15.96 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.787/3.787, allocations: 388.9 MB / 405.6 MB, free: 48.56 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.007406/0.007405, allocations: 228.8 kB / 451 MB, free: 3.031 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.8184/0.8184, allocations: 80.01 MB / 0.5627 GB, free: 6.266 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004599/0.0004601, allocations: 15.94 kB / 0.6265 GB, free: 4.832 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.12, allocations: 54.87 MB / 0.6801 GB, free: 13.82 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Pipes.StaticPipe): time 0.01799/0.1381, allocations: 11.6 MB / 0.6915 GB, free: 2.168 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.4243/0.5625, allocations: 5.055 MB / 0.6964 GB, free: 71.89 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000935/0.5635, allocations: 23.69 kB / 0.6964 GB, free: 71.89 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.5646, allocations: 159.2 kB / 0.6966 GB, free: 71.89 MB / 394.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+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.2+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.2+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.2+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.00365/0.5683, allocations: 0.6459 MB / 0.6972 GB, free: 71.82 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007007/0.5754, allocations: 1.18 MB / 0.6983 GB, free: 71.7 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00304/0.5784, allocations: 1.415 MB / 0.6997 GB, free: 71.51 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009292/0.5794, allocations: 264.4 kB / 0.7 GB, free: 71.48 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001673/0.5811, allocations: 427.9 kB / 0.7004 GB, free: 71.39 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.5828, allocations: 435.5 kB / 0.7008 GB, free: 71.33 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002201/0.5831, allocations: 18.06 kB / 0.7008 GB, free: 71.33 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003939/0.587, allocations: 0.9261 MB / 0.7017 GB, free: 71.3 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004902/0.5876, allocations: 144.6 kB / 0.7019 GB, free: 71.28 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003455/0.5879, allocations: 120.4 kB / 0.702 GB, free: 71.23 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003158/0.5911, allocations: 0.8853 MB / 0.7028 GB, free: 71.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.208e-06/0.5912, allocations: 6.469 kB / 0.7028 GB, free: 71.16 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.336e-06/0.5912, allocations: 0 / 0.7028 GB, free: 71.16 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.331e-05/0.5913, allocations: 1.219 kB / 0.7028 GB, free: 71.16 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003166/0.5944, allocations: 0.8476 MB / 0.7037 GB, free: 70.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.433e-05/0.5945, allocations: 9.5 kB / 0.7037 GB, free: 70.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006081/0.5952, allocations: 60.83 kB / 0.7037 GB, free: 70.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00146/0.5966, allocations: 439.9 kB / 0.7042 GB, free: 70.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.709e-05/0.5968, allocations: 25.03 kB / 0.7042 GB, free: 70.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.5969, allocations: 27.8 kB / 0.7042 GB, free: 70.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001801/0.5987, allocations: 0.5074 MB / 0.7047 GB, free: 70.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.677e-05/0.5988, allocations: 7.453 kB / 0.7047 GB, free: 70.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001065/0.599, allocations: 16.11 kB / 0.7047 GB, free: 70.15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001029/0.5991, allocations: 26.38 kB / 0.7048 GB, free: 70.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001901/0.601, allocations: 454.4 kB / 0.7052 GB, free: 70.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007302/0.6084, allocations: 2.252 MB / 0.7074 GB, free: 68.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/0.6092, allocations: 216.2 kB / 0.7076 GB, free: 68.77 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004262/0.6097, allocations: 119.3 kB / 0.7077 GB, free: 68.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002242/0.612, allocations: 1.01 MB / 0.7087 GB, free: 68 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004278/0.6124, allocations: 149.8 kB / 0.7088 GB, free: 67.92 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 4.718e-06/0.6125, allocations: 0 / 0.7088 GB, free: 67.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.001028/0.6135, allocations: 288.6 kB / 0.7091 GB, free: 67.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.659e-05/0.6136, allocations: 168.2 kB / 0.7093 GB, free: 67.63 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00112/0.6148, allocations: 487 kB / 0.7097 GB, free: 67.51 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.193e-05/0.6148, allocations: 28.14 kB / 0.7098 GB, free: 67.48 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003188/0.6152, allocations: 312.3 kB / 0.7101 GB, free: 67.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.368e-05/0.6153, allocations: 50.72 kB / 0.7101 GB, free: 67.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.6153, allocations: 6.688 kB / 0.7101 GB, free: 67.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.6155, allocations: 357.2 kB / 0.7105 GB, free: 66.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004072/0.6159, allocations: 109.8 kB / 0.7106 GB, free: 66.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005699/0.6165, allocations: 338.5 kB / 0.7109 GB, free: 66.67 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005707/0.6171, allocations: 205.2 kB / 0.7111 GB, free: 66.63 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.6171, allocations: 2.812 kB / 0.7111 GB, free: 66.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.00169/0.6188, allocations: 0.5082 MB / 0.7116 GB, free: 66.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002657/0.6191, allocations: 343.1 kB / 0.7119 GB, free: 66.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.6192, allocations: 8.312 kB / 0.7119 GB, free: 66.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.191e-05/0.6192, allocations: 14.41 kB / 0.7119 GB, free: 66.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000787/0.62, allocations: 85.42 kB / 0.712 GB, free: 66.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.586e-05/0.6201, allocations: 15.95 kB / 0.712 GB, free: 66.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009195/0.621, allocations: 64.94 kB / 0.7121 GB, free: 66.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.893e-05/0.6211, allocations: 27.61 kB / 0.7121 GB, free: 66.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.6211, allocations: 3.344 kB / 0.7121 GB, free: 66.08 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001441/0.6226, allocations: 463.6 kB / 0.7126 GB, free: 65.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.6227, allocations: 7.938 kB / 0.7126 GB, free: 65.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.6227, allocations: 10.12 kB / 0.7126 GB, free: 65.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007414/0.6235, allocations: 93.44 kB / 0.7127 GB, free: 65.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.263e-05/0.6235, allocations: 12.59 kB / 0.7127 GB, free: 65.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008217/0.6243, allocations: 53.55 kB / 0.7127 GB, free: 65.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-05/0.6245, allocations: 23.47 kB / 0.7128 GB, free: 65.95 MB / 394.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: 7 ($whenCondition1,p_table.a,p_table.b,p_table.last,$PRE.p_table.nextEvent,p_table.nextEvent,p_table.nextEventScaled) * 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.0005631/0.625, allocations: 305.8 kB / 0.713 GB, free: 65.72 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.6252, allocations: 48.42 kB / 0.7131 GB, free: 65.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009557/0.6262, allocations: 282.6 kB / 0.7134 GB, free: 65.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.6262, allocations: 3.281 kB / 0.7134 GB, free: 65.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.6262, allocations: 2.938 kB / 0.7134 GB, free: 65.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002161/0.6265, allocations: 124.6 kB / 0.7135 GB, free: 65.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001698/0.6267, allocations: 9.5 kB / 0.7135 GB, free: 65.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00047/0.6271, allocations: 14.7 kB / 0.7135 GB, free: 65.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.6272, allocations: 11.31 kB / 0.7135 GB, free: 65.5 MB / 394.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007399/0.628, allocations: 357 kB / 0.7139 GB, free: 65.29 MB / 394.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007803/0.6288, allocations: 443.5 kB / 0.7143 GB, free: 65 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002728/0.6291, allocations: 114.6 kB / 0.7144 GB, free: 64.95 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007556/0.6299, allocations: 334.3 kB / 0.7147 GB, free: 64.79 MB / 394.7 MB Notification: Performance of Backend: time 1.422e-06/0.6299, allocations: 0 / 0.7147 GB, free: 64.79 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004698/0.6346, allocations: 0.9712 MB / 0.7157 GB, free: 64.34 MB / 394.7 MB Notification: Performance of SimCode: time 0.004085/0.6388, allocations: 1.52 MB / 0.7171 GB, free: 63.29 MB / 394.7 MB Notification: Performance of Templates: time 0.04694/0.6858, allocations: 10.61 MB / 0.7275 GB, free: 61.86 MB / 394.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],p_table.timeScale,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