Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances") translateModel(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.001199/0.001199, allocations: 103.4 kB / 16.42 MB, free: 6.484 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.001126/0.001126, allocations: 192.2 kB / 17.35 MB, free: 5.754 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.241/1.241, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1507/0.1507, allocations: 38 MB / 308.6 MB, free: 5.988 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.362e-05/1.363e-05, allocations: 2.281 kB / 433.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Sensors.TestTraceSubstances): time 0.3512/0.3512, allocations: 186.3 MB / 0.6054 GB, free: 9.516 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.353, allocations: 0.8969 MB / 0.6062 GB, free: 8.617 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.3532, allocations: 7.938 kB / 0.6062 GB, free: 8.609 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005922/0.3538, allocations: 210.6 kB / 0.6064 GB, free: 8.402 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004632/0.3543, allocations: 274.4 kB / 0.6067 GB, free: 8.133 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004963/0.3593, allocations: 2.158 MB / 0.6088 GB, free: 5.984 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001036/0.3603, allocations: 1.045 MB / 0.6098 GB, free: 4.934 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000474/0.3608, allocations: 368.5 kB / 0.6102 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00326/0.3641, allocations: 1.721 MB / 0.6119 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000432/0.3645, allocations: 330.8 kB / 0.6122 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.323e-05/0.3646, allocations: 48 kB / 0.6122 GB, free: 2.484 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003853/0.3685, allocations: 2.901 MB / 0.6151 GB, free: 15.58 MB / 446.1 MB Notification: Performance of combineBinaries: time 0.000612/0.3691, allocations: 0.832 MB / 0.6159 GB, free: 14.74 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003206/0.3694, allocations: 0.5054 MB / 0.6164 GB, free: 14.23 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 9.894e-05/0.3695, allocations: 83.75 kB / 0.6164 GB, free: 14.14 MB / 446.1 MB Notification: Performance of FrontEnd: time 5.993e-05/0.3696, allocations: 19.88 kB / 0.6165 GB, free: 14.12 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.00192/0.3715, allocations: 2.316 MB / 0.6187 GB, free: 11.69 MB / 446.1 MB Notification: Performance of FunctionAlias: time 0.0001252/0.3717, allocations: 111.8 kB / 0.6188 GB, free: 11.58 MB / 446.1 MB Notification: Performance of Early Inline: time 0.001284/0.3729, allocations: 1.413 MB / 0.6202 GB, free: 10.14 MB / 446.1 MB Notification: Performance of simplify1: time 0.0001078/0.3731, allocations: 111.8 kB / 0.6203 GB, free: 10.03 MB / 446.1 MB Notification: Performance of Alias: time 0.001263/0.3743, allocations: 1.264 MB / 0.6216 GB, free: 8.641 MB / 446.1 MB Notification: Performance of simplify2: time 0.0001097/0.3745, allocations: 103.9 kB / 0.6216 GB, free: 8.539 MB / 446.1 MB Notification: Performance of Events: time 0.0002655/0.3747, allocations: 209.4 kB / 0.6218 GB, free: 8.336 MB / 446.1 MB Notification: Performance of Detect States: time 0.000464/0.3752, allocations: 384.4 kB / 0.6222 GB, free: 7.953 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0005438/0.3758, allocations: 0.5901 MB / 0.6228 GB, free: 7.25 MB / 446.1 MB Notification: Performance of Causalize: time 0.003285/0.379, allocations: 3.436 MB / 0.6261 GB, free: 3.723 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 0.001055/0.3801, allocations: 1.108 MB / 0.6272 GB, free: 2.586 MB / 446.1 MB Notification: Performance of Inline: time 0.001946/0.3821, allocations: 2.036 MB / 0.6292 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of Partitioning: time 0.0001159/0.3822, allocations: 104.3 kB / 0.6293 GB, free: 416 kB / 446.1 MB Notification: Performance of Cleanup: time 8.464e-05/0.3823, allocations: 91.84 kB / 0.6294 GB, free: 324 kB / 446.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.005416/0.3877, allocations: 5.775 MB / 0.635 GB, free: 10.62 MB / 462.1 MB Notification: Performance of Tearing: time 8.776e-06/0.3877, allocations: 4 kB / 0.635 GB, free: 10.62 MB / 462.1 MB Notification: Performance of Initialization: time 4.81e-07/0.3877, allocations: 0 / 0.635 GB, free: 10.62 MB / 462.1 MB Notification: Performance of Tearing: time 8.155e-06/0.3878, allocations: 7.938 kB / 0.6351 GB, free: 10.61 MB / 462.1 MB Notification: Performance of Categorize: time 2.056e-05/0.3878, allocations: 4 kB / 0.6351 GB, free: 10.61 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)