Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.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.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|traceSubstance.C|traceSubstance1.C",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01053/0.01053, allocations: 352.3 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.725/3.725, allocations: 341.5 MB / 358.2 MB, free: 12.63 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.003618/0.003617, allocations: 233.1 kB / 397.9 MB, free: 4.984 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.4878/0.4878, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004806/0.0004812, allocations: 12 kB / 0.5592 GB, free: 53.45 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.0893, allocations: 48.69 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.8994/0.9888, allocations: 169.3 MB / 0.772 GB, free: 4.43 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00339/0.9922, allocations: 0.8919 MB / 0.7729 GB, free: 4.41 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004849/0.9928, allocations: 11.91 kB / 0.7729 GB, free: 4.41 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008198/0.9936, allocations: 130.6 kB / 0.7731 GB, free: 4.41 MB / 410.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.001251/0.9949, allocations: 278.2 kB / 0.7733 GB, free: 4.395 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01038/1.005, allocations: 1.605 MB / 0.7749 GB, free: 4.336 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002605/1.008, allocations: 1.091 MB / 0.776 GB, free: 4.336 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009092/1.009, allocations: 258.8 kB / 0.7762 GB, free: 4.32 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008066/1.017, allocations: 1.444 MB / 0.7776 GB, free: 4.277 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001187/1.018, allocations: 306.7 kB / 0.7779 GB, free: 4.277 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002328/1.018, allocations: 20.69 kB / 0.7779 GB, free: 4.277 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01024/1.029, allocations: 2.409 MB / 0.7803 GB, free: 4.246 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004647/1.029, allocations: 168.6 kB / 0.7804 GB, free: 4.246 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003163/1.03, allocations: 113.7 kB / 0.7805 GB, free: 4.215 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004207/1.034, allocations: 1.353 MB / 0.7819 GB, free: 4.117 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/1.034, allocations: 1.062 kB / 0.7819 GB, free: 4.117 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.085e-06/1.034, allocations: 0 / 0.7819 GB, free: 4.117 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.301e-05/1.034, allocations: 4 kB / 0.7819 GB, free: 4.113 MB / 410.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.003122/1.037, allocations: 0.9727 MB / 0.7828 GB, free: 3.418 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/1.037, allocations: 13.31 kB / 0.7828 GB, free: 3.414 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003877/1.037, allocations: 65.22 kB / 0.7829 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008456/1.038, allocations: 383.3 kB / 0.7833 GB, free: 3.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.157e-05/1.038, allocations: 28.72 kB / 0.7833 GB, free: 3.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.714e-05/1.039, allocations: 34.94 kB / 0.7833 GB, free: 3.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/1.04, allocations: 0.5123 MB / 0.7838 GB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/1.04, allocations: 1 kB / 0.7838 GB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-05/1.04, allocations: 15.09 kB / 0.7838 GB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.967e-05/1.04, allocations: 9.438 kB / 0.7838 GB, free: 3.062 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001492/1.042, allocations: 0.4966 MB / 0.7843 GB, free: 3.059 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004571/1.046, allocations: 1.963 MB / 0.7862 GB, free: 17.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009115/1.047, allocations: 380.2 kB / 0.7866 GB, free: 17.77 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004221/1.048, allocations: 152.3 kB / 0.7868 GB, free: 17.74 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/1.049, allocations: 0.949 MB / 0.7877 GB, free: 16.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/1.049, allocations: 39.97 kB / 0.7877 GB, free: 16.67 MB / 426.7 MB Notification: Performance of pre-optimization done (n=28): time 3.116e-06/1.049, allocations: 0 / 0.7877 GB, free: 16.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=28): time 0.001499/1.05, allocations: 402.6 kB / 0.7881 GB, free: 16.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/1.05, allocations: 105.8 kB / 0.7882 GB, free: 16.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004604/1.051, allocations: 314.7 kB / 0.7885 GB, free: 16.37 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.092e-05/1.051, allocations: 31.86 kB / 0.7885 GB, free: 16.34 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/1.051, allocations: 242 kB / 0.7888 GB, free: 16.18 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.965e-05/1.051, allocations: 102 kB / 0.7889 GB, free: 16.12 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/1.051, allocations: 8.625 kB / 0.7889 GB, free: 16.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/1.052, allocations: 344.8 kB / 0.7892 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004575/1.052, allocations: 124.7 kB / 0.7893 GB, free: 15.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005514/1.053, allocations: 304.5 kB / 0.7896 GB, free: 15.58 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005839/1.053, allocations: 243.2 kB / 0.7898 GB, free: 15.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/1.053, allocations: 2.719 kB / 0.7898 GB, free: 15.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001507/1.055, allocations: 0.5413 MB / 0.7904 GB, free: 15.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.232e-05/1.055, allocations: 67.05 kB / 0.7904 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/1.055, allocations: 6.094 kB / 0.7904 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/1.055, allocations: 10.88 kB / 0.7905 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006871/1.056, allocations: 100.2 kB / 0.7905 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.006e-05/1.056, allocations: 16.17 kB / 0.7906 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/1.056, allocations: 60.84 kB / 0.7906 GB, free: 15.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.248e-05/1.056, allocations: 26.58 kB / 0.7906 GB, free: 15.3 MB / 426.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.0003315/1.057, allocations: 193.6 kB / 0.7908 GB, free: 15.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/1.057, allocations: 34.98 kB / 0.7909 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001374/1.058, allocations: 433.6 kB / 0.7913 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/1.058, allocations: 6.141 kB / 0.7913 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/1.058, allocations: 1.219 kB / 0.7913 GB, free: 15.05 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001798/1.058, allocations: 128.1 kB / 0.7914 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/1.058, allocations: 5.25 kB / 0.7914 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004114/1.059, allocations: 23.8 kB / 0.7914 GB, free: 14.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.62e-05/1.059, allocations: 19.33 kB / 0.7915 GB, free: 14.92 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001034/1.06, allocations: 499.2 kB / 0.7919 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0009367/1.061, allocations: 0.5734 MB / 0.7925 GB, free: 14.29 MB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003385/1.061, allocations: 98.5 kB / 0.7926 GB, free: 14.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004303/1.062, allocations: 264.9 kB / 0.7928 GB, free: 14.21 MB / 426.7 MB Notification: Performance of Backend: time 4.9e-07/1.062, allocations: 0 / 0.7928 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005431/1.067, allocations: 1.107 MB / 0.7939 GB, free: 13.88 MB / 426.7 MB Notification: Performance of SimCode: time 0.002492/1.07, allocations: 1.371 MB / 0.7953 GB, free: 12.96 MB / 426.7 MB Notification: Performance of Templates: time 0.03926/1.109, allocations: 16.16 MB / 0.811 GB, free: 6.285 MB / 426.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