Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 109.5 kB / 16.42 MB, free: 6.516 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.001157/0.001157, allocations: 187.2 kB / 17.36 MB, free: 5.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.28/1.28, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1719/0.1719, allocations: 39.96 MB / 310.5 MB, free: 4.027 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.565e-05/1.565e-05, allocations: 2.281 kB / 436.4 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3646/0.3646, allocations: 186.3 MB / 0.6081 GB, free: 5.535 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001799/0.3665, allocations: 0.9123 MB / 0.609 GB, free: 4.621 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.3666, allocations: 11.94 kB / 0.609 GB, free: 4.609 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006227/0.3673, allocations: 206.6 kB / 0.6092 GB, free: 4.406 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004917/0.3678, allocations: 274.4 kB / 0.6094 GB, free: 4.137 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006687/0.3745, allocations: 2.139 MB / 0.6115 GB, free: 2.008 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.3757, allocations: 1.06 MB / 0.6125 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005053/0.3762, allocations: 359.7 kB / 0.6129 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003629/0.3799, allocations: 1.721 MB / 0.6146 GB, free: 14.87 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004235/0.3803, allocations: 334.8 kB / 0.6149 GB, free: 14.54 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.822e-05/0.3804, allocations: 48 kB / 0.6149 GB, free: 14.5 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004033/0.3844, allocations: 2.911 MB / 0.6178 GB, free: 11.58 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.0006267/0.3851, allocations: 0.832 MB / 0.6186 GB, free: 10.74 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003197/0.3854, allocations: 0.5054 MB / 0.6191 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.3855, allocations: 87.81 kB / 0.6192 GB, free: 10.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.104e-05/0.3856, allocations: 15.88 kB / 0.6192 GB, free: 10.13 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 (85) * Number of variables: 89 (83) Notification: Performance of Bindings: time 0.002053/0.3876, allocations: 2.304 MB / 0.6214 GB, free: 7.707 MB / 446.1 MB Notification: Performance of FunctionAlias: time 0.0001385/0.3878, allocations: 119.8 kB / 0.6215 GB, free: 7.59 MB / 446.1 MB Notification: Performance of Early Inline: time 0.001419/0.3892, allocations: 1.425 MB / 0.6229 GB, free: 6.137 MB / 446.1 MB Notification: Performance of simplify1: time 0.0001111/0.3893, allocations: 103.9 kB / 0.623 GB, free: 6.035 MB / 446.1 MB Notification: Performance of Alias: time 0.001352/0.3907, allocations: 1.264 MB / 0.6243 GB, free: 4.645 MB / 446.1 MB Notification: Performance of simplify2: time 0.0001094/0.3908, allocations: 95.88 kB / 0.6244 GB, free: 4.551 MB / 446.1 MB Notification: Performance of Events: time 0.0002785/0.3911, allocations: 218.8 kB / 0.6246 GB, free: 4.344 MB / 446.1 MB Notification: Performance of Detect States: time 0.0003353/0.3915, allocations: 379.3 kB / 0.6249 GB, free: 3.961 MB / 446.1 MB Notification: Performance of Partitioning: time 0.000586/0.392, allocations: 0.5902 MB / 0.6255 GB, free: 3.254 MB / 446.1 MB Notification: Performance of Causalize: time 0.003361/0.3954, allocations: 3.428 MB / 0.6289 GB, free: 15.73 MB / 462.1 MB Notification: Performance of After Index Reduction Inline: time 0.001074/0.3965, allocations: 1.116 MB / 0.6299 GB, free: 14.59 MB / 462.1 MB Notification: Performance of Inline: time 0.002104/0.3986, allocations: 2.027 MB / 0.6319 GB, free: 12.53 MB / 462.1 MB Notification: Performance of Partitioning: time 9.99e-05/0.3987, allocations: 103.6 kB / 0.632 GB, free: 12.42 MB / 462.1 MB Notification: Performance of Cleanup: time 9.068e-05/0.3988, allocations: 91.84 kB / 0.6321 GB, free: 12.33 MB / 462.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [ALGO] (1) ($RES_SIM_0) [----] traceSubstance1.ind := -1; [----] for i in 1:1 loop [----] if Modelica.Utilities.Strings.compare("CO2", traceSubstance1.substanceName, true) == Modelica.Utilities.Types.Compare.Equal then [----] traceSubstance1.ind := i; [----] end if; [----] end for; [----] assert(traceSubstance1.ind > 0, "Trace substance '" + traceSubstance1.substanceName + "' is not present in medium '" + "Moist air" + "'. " + "Check sensor parameter and medium model.", AssertionLevel.error); slice: {}; [ALGO] (1) ($RES_SIM_1) [----] traceSubstance.ind := -1; [----] for i in 1:1 loop [----] if Modelica.Utilities.Strings.compare("CO2", traceSubstance.substanceName, true) == Modelica.Utilities.Types.Compare.Equal then [----] traceSubstance.ind := i; [----] end if; [----] end for; [----] assert(traceSubstance.ind > 0, "Trace substance '" + traceSubstance.substanceName + "' is not present in medium '" + "Moist air" + "'. " + "Check sensor parameter and medium model.", AssertionLevel.error); slice: {}; Notification: Performance of Causalize: time 0.005466/0.4043, allocations: 5.788 MB / 0.6378 GB, free: 6.625 MB / 462.1 MB Notification: Performance of Tearing: time 7.233e-06/0.4043, allocations: 0 / 0.6378 GB, free: 6.625 MB / 462.1 MB Notification: Performance of Initialization: time 4.01e-07/0.4043, allocations: 0 / 0.6378 GB, free: 6.625 MB / 462.1 MB Notification: Performance of Tearing: time 7.764e-06/0.4043, allocations: 3.938 kB / 0.6378 GB, free: 6.621 MB / 462.1 MB Notification: Performance of Categorize: time 1.992e-05/0.4044, allocations: 8 kB / 0.6378 GB, free: 6.613 MB / 462.1 MB Error: Internal error NBSolve.solveStrongComponent failed with status = Solve.UNSOLVABLE while trying to solve following strong component: BLOCK: Single Strong Component (status = Solve.UNPROCESSED) ------------------------------------------------------------- ### Variable: protected parameter Integer traceSubstance1.ind ### Equation: [SCAL] (1) traceSubstance1.C = smooth(1, if $SEV_4 then traceSubstance1.port_b.C_outflow[traceSubstance1.ind] else if $SEV_5 then traceSubstance1.port_a.C_outflow[traceSubstance1.ind] else 0.5 * (traceSubstance1.port_b.C_outflow[traceSubstance1.ind] + traceSubstance1.port_a.C_outflow[traceSubstance1.ind])) ($RES_SIM_11)