Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001301/0.001301, allocations: 195.7 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 226.5 MB / 244 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008249/0.0008248, allocations: 96.22 kB / 296.1 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3133/0.3133, allocations: 44.82 MB / 392.9 MB, free: 35.63 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003894/0.0003894, allocations: 4 kB / 465.9 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.36, allocations: 62.96 MB / 0.5165 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0005215/0.3605, allocations: 218 kB / 0.5167 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.3624, allocations: 1.205 MB / 0.5179 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.428e-05/0.3624, allocations: 0 / 0.5179 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.443e-05/0.3624, allocations: 3.938 kB / 0.5179 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.654e-06/0.3624, allocations: 0 / 0.5179 GB, free: 36.25 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:4:3-219:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Strings‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.3635, allocations: 443.2 kB / 0.5183 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.027e-05/0.3636, allocations: 0 / 0.5183 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.473e-05/0.3636, allocations: 0 / 0.5183 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.753e-05/0.3637, allocations: 6.766 kB / 0.5183 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.192e-05/0.3637, allocations: 0 / 0.5183 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-06/0.3637, allocations: 0 / 0.5183 GB, free: 36.05 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01435/0.3781, allocations: 2.305 MB / 0.5206 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.362e-05/0.3781, allocations: 0 / 0.5206 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.204e-05/0.3782, allocations: 28.48 kB / 0.5206 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.3784, allocations: 123.1 kB / 0.5207 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3784, allocations: 0 / 0.5207 GB, free: 35.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.644e-06/0.3784, allocations: 0 / 0.5207 GB, free: 35.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.3785, allocations: 0 / 0.5207 GB, free: 35.32 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003034/0.3788, allocations: 368.9 kB / 0.5211 GB, free: 34.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.3788, allocations: 8.75 kB / 0.5211 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.3789, allocations: 11.66 kB / 0.5211 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.249e-05/0.3789, allocations: 167.6 kB / 0.5212 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.379, allocations: 384 / 0.5212 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.379, allocations: 384 / 0.5212 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.189e-05/0.3791, allocations: 40.64 kB / 0.5213 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.3791, allocations: 0 / 0.5213 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.3791, allocations: 0 / 0.5213 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.3791, allocations: 0 / 0.5213 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.457e-05/0.3792, allocations: 2.906 kB / 0.5213 GB, free: 34.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.3793, allocations: 145 kB / 0.5214 GB, free: 34.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.061e-05/0.3793, allocations: 21.48 kB / 0.5214 GB, free: 34.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.372e-05/0.3793, allocations: 8.859 kB / 0.5215 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.3793, allocations: 6.938 kB / 0.5215 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.3794, allocations: 64.2 kB / 0.5215 GB, free: 34.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.3794, allocations: 0 / 0.5215 GB, free: 34.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001616/0.3796, allocations: 63.66 kB / 0.5216 GB, free: 34.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.543e-05/0.3796, allocations: 77.11 kB / 0.5217 GB, free: 34.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.29e-05/0.3796, allocations: 89.86 kB / 0.5217 GB, free: 34.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.3796, allocations: 25.7 kB / 0.5218 GB, free: 34.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.483e-05/0.3797, allocations: 84.27 kB / 0.5218 GB, free: 34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.3797, allocations: 10.22 kB / 0.5219 GB, free: 34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-06/0.3797, allocations: 0 / 0.5219 GB, free: 34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.889e-05/0.3798, allocations: 314.8 kB / 0.5222 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.456e-06/0.3798, allocations: 0 / 0.5222 GB, free: 33.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.581e-06/0.3798, allocations: 3.031 kB / 0.5222 GB, free: 33.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.429e-05/0.3798, allocations: 59.33 kB / 0.5222 GB, free: 33.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3798, allocations: 0 / 0.5222 GB, free: 33.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.628e-05/0.3799, allocations: 64.75 kB / 0.5223 GB, free: 33.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.3799, allocations: 35.7 kB / 0.5223 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.3799, allocations: 0 / 0.5223 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.38, allocations: 0 / 0.5223 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.192e-06/0.38, allocations: 0 / 0.5223 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.38, allocations: 3.938 kB / 0.5223 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.941e-05/0.38, allocations: 10.97 kB / 0.5223 GB, free: 33.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.485e-06/0.38, allocations: 0 / 0.5223 GB, free: 33.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 5.518e-05/0.3801, allocations: 137.9 kB / 0.5225 GB, free: 33.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.103e-06/0.3801, allocations: 11.91 kB / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.785e-06/0.3801, allocations: 6.719 kB / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.3801, allocations: 0 / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3801, allocations: 0 / 0.5225 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.979e-05/0.3801, allocations: 84.14 kB / 0.5226 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.3801, allocations: 0 / 0.5226 GB, free: 33.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.538e-06/0.3802, allocations: 3.984 kB / 0.5226 GB, free: 33.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.267e-05/0.3802, allocations: 3.375 kB / 0.5226 GB, free: 33.24 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.902e-05/0.3803, allocations: 191.5 kB / 0.5227 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 8.565e-05/0.3804, allocations: 247.8 kB / 0.523 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.653e-05/0.3804, allocations: 2.938 kB / 0.523 GB, free: 32.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.331e-05/0.3804, allocations: 75.28 kB / 0.5231 GB, free: 32.71 MB / 378.7 MB Notification: Performance of Backend: time 1.8e-07/0.3804, allocations: 0 / 0.5231 GB, free: 32.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009101/0.3813, allocations: 441.3 kB / 0.5235 GB, free: 32.48 MB / 378.7 MB Notification: Performance of SimCode: time 0.000223/0.3816, allocations: 0.606 MB / 0.5241 GB, free: 31.82 MB / 378.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: result (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for result found!