Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.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.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00278/0.002784, allocations: 368.9 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.966/3.966, allocations: 388.9 MB / 405.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003545/0.003544, allocations: 233.5 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5622/0.5622, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007156/0.0007159, allocations: 12.97 kB / 0.6265 GB, free: 96.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09662, allocations: 54.87 MB / 0.6801 GB, free: 41.65 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.5731/0.6698, allocations: 169.4 MB / 0.8455 GB, free: 2.734 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.00278/0.6726, allocations: 0.8887 MB / 0.8464 GB, free: 1.848 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004625/0.6731, allocations: 11.94 kB / 0.8464 GB, free: 1.836 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007278/0.6739, allocations: 139.1 kB / 0.8466 GB, free: 1.699 MB / 426.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.001101/0.675, allocations: 278.3 kB / 0.8468 GB, free: 1.426 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007462/0.6825, allocations: 1.613 MB / 0.8484 GB, free: 15.82 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002004/0.6845, allocations: 1.096 MB / 0.8495 GB, free: 14.72 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007821/0.6853, allocations: 264.6 kB / 0.8497 GB, free: 14.46 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005794/0.6912, allocations: 1.44 MB / 0.8511 GB, free: 13.02 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008683/0.6921, allocations: 310.9 kB / 0.8514 GB, free: 12.71 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.6923, allocations: 20 kB / 0.8514 GB, free: 12.69 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007128/0.6994, allocations: 2.43 MB / 0.8538 GB, free: 10.26 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004224/0.6999, allocations: 167.6 kB / 0.854 GB, free: 10.09 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000254/0.7002, allocations: 121.5 kB / 0.8541 GB, free: 9.969 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003857/0.704, allocations: 1.353 MB / 0.8554 GB, free: 8.613 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.7041, allocations: 0 / 0.8554 GB, free: 8.613 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.7041, allocations: 0 / 0.8554 GB, free: 8.613 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.7041, allocations: 0 / 0.8554 GB, free: 8.613 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003129/0.7073, allocations: 0.974 MB / 0.8564 GB, free: 7.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.864e-05/0.7074, allocations: 8.562 kB / 0.8564 GB, free: 7.562 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006183/0.708, allocations: 55.44 kB / 0.8564 GB, free: 7.508 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009967/0.709, allocations: 389.9 kB / 0.8568 GB, free: 7.09 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.768e-05/0.7091, allocations: 29 kB / 0.8568 GB, free: 7.062 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.341e-05/0.7092, allocations: 36 kB / 0.8569 GB, free: 7.027 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.7107, allocations: 0.5088 MB / 0.8574 GB, free: 6.492 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.7108, allocations: 7.938 kB / 0.8574 GB, free: 6.484 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.158e-05/0.7109, allocations: 19.95 kB / 0.8574 GB, free: 6.461 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.7109, allocations: 12 kB / 0.8574 GB, free: 6.449 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.7125, allocations: 499.3 kB / 0.8579 GB, free: 5.961 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/0.7172, allocations: 2.07 MB / 0.8599 GB, free: 3.738 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000996/0.7183, allocations: 384.8 kB / 0.8603 GB, free: 3.316 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000446/0.7187, allocations: 142.5 kB / 0.8604 GB, free: 3.168 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001207/0.72, allocations: 0.9454 MB / 0.8613 GB, free: 2.02 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.72, allocations: 46.64 kB / 0.8614 GB, free: 1.965 MB / 442.7 MB Notification: Performance of pre-optimization done (n=28): time 3.898e-06/0.72, allocations: 4 kB / 0.8614 GB, free: 1.961 MB / 442.7 MB Notification: Performance of matching and sorting (n=28): time 0.001577/0.7216, allocations: 397.6 kB / 0.8617 GB, free: 1.566 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.906e-05/0.7217, allocations: 102.8 kB / 0.8618 GB, free: 1.441 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/0.7222, allocations: 312.5 kB / 0.8621 GB, free: 1.137 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.407e-05/0.7223, allocations: 29.7 kB / 0.8622 GB, free: 1.102 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002307/0.7226, allocations: 251.3 kB / 0.8624 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.7227, allocations: 98.64 kB / 0.8625 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.7228, allocations: 8 kB / 0.8625 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.7229, allocations: 350.8 kB / 0.8628 GB, free: 404 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005098/0.7235, allocations: 124.8 kB / 0.863 GB, free: 280 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000611/0.7241, allocations: 314.2 kB / 0.8633 GB, free: 15.89 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006055/0.7247, allocations: 231.4 kB / 0.8635 GB, free: 15.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.822e-06/0.7247, allocations: 0 / 0.8635 GB, free: 15.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001618/0.7264, allocations: 0.539 MB / 0.864 GB, free: 15.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.956e-05/0.7265, allocations: 67.41 kB / 0.8641 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.7265, allocations: 4.719 kB / 0.8641 GB, free: 15.01 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.346e-05/0.7266, allocations: 12 kB / 0.8641 GB, free: 15 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007827/0.7273, allocations: 111.9 kB / 0.8642 GB, free: 14.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.813e-05/0.7274, allocations: 11.98 kB / 0.8642 GB, free: 14.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/0.728, allocations: 59.45 kB / 0.8643 GB, free: 14.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.408e-05/0.7281, allocations: 27.98 kB / 0.8643 GB, free: 14.79 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 2 (traceSubstance.ind,traceSubstance1.ind) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 2 * 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.0003701/0.7285, allocations: 198.4 kB / 0.8645 GB, free: 14.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.7286, allocations: 39.53 kB / 0.8645 GB, free: 14.55 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00156/0.7302, allocations: 429.3 kB / 0.8649 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.7303, allocations: 4 kB / 0.8649 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.7303, allocations: 0 / 0.8649 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000205/0.7305, allocations: 136.5 kB / 0.8651 GB, free: 13.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.68e-05/0.7306, allocations: 7.891 kB / 0.8651 GB, free: 13.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004333/0.731, allocations: 19.98 kB / 0.8651 GB, free: 13.93 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.874e-05/0.7311, allocations: 15.98 kB / 0.8651 GB, free: 13.91 MB / 458.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001058/0.7322, allocations: 491.3 kB / 0.8656 GB, free: 13.42 MB / 458.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001025/0.7333, allocations: 0.5901 MB / 0.8661 GB, free: 12.82 MB / 458.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003647/0.7337, allocations: 108.2 kB / 0.8663 GB, free: 12.71 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0004383/0.7341, allocations: 255.2 kB / 0.8665 GB, free: 12.46 MB / 458.7 MB Notification: Performance of Backend: time 1.122e-06/0.7341, allocations: 4 kB / 0.8665 GB, free: 12.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005017/0.7392, allocations: 1.1 MB / 0.8676 GB, free: 11.35 MB / 458.7 MB Notification: Performance of SimCode: time 0.002596/0.7418, allocations: 1.357 MB / 0.8689 GB, free: 9.945 MB / 458.7 MB Notification: Performance of Templates: time 0.04429/0.7861, allocations: 16.18 MB / 0.8847 GB, free: 9.844 MB / 474.7 MB "" Variables in the reference:time,traceSubstance.C,traceSubstance1.C Variables in the result:C.duration,C.height,C.offset,C.startTime,boundary_prescriberho_1.C[1],boundary_prescriberho_1.X[1],boundary_prescriberho_1.X[2],boundary_prescriberho_1.flowDirection,boundary_prescriberho_1.h,boundary_prescriberho_1.medium.preferredMediumStates,boundary_prescriberho_1.medium.standardOrderComponents,boundary_prescriberho_1.nPorts,boundary_prescriberho_1.p,boundary_prescriberho_2.C[1],boundary_prescriberho_2.X[1],boundary_prescriberho_2.X[2],boundary_prescriberho_2.flowDirection,boundary_prescriberho_2.h,boundary_prescriberho_2.medium.preferredMediumStates,boundary_prescriberho_2.medium.standardOrderComponents,boundary_prescriberho_2.nPorts,boundary_prescriberho_2.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,traceSubstance.C,traceSubstance.ind,traceSubstance1.C,traceSubstance1.allowFlowReversal,traceSubstance1.ind,traceSubstance1.m_flow_nominal,traceSubstance1.m_flow_small,traceSubstance1.port_a_exposesState,traceSubstance1.port_b.C_outflow[1],traceSubstance1.port_b_exposesState,traceSubstance1.showDesignFlowDirection