Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009555/0.0009556, allocations: 192.3 kB / 16.75 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.5 MB / 244.1 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008534/0.0008536, allocations: 99.06 kB / 296.1 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3282/0.3282, allocations: 44.83 MB / 392.9 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002749, allocations: 7.984 kB / 465.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.3833, allocations: 62.96 MB / 0.5165 GB, free: 37.08 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0007037/0.3841, allocations: 211.9 kB / 0.5167 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005093/0.3846, allocations: 234.4 kB / 0.5169 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.509e-05/0.3847, allocations: 0 / 0.5169 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.3847, allocations: 0 / 0.5169 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.103e-06/0.3847, allocations: 0 / 0.5169 GB, free: 36.79 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:398:3-453:15:writable] Warning: Pure function ‘ModelicaTest.Utilities.Internal‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0003126/0.385, allocations: 46.28 kB / 0.517 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 4.143e-05/0.3851, allocations: 2.75 kB / 0.517 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.995e-05/0.3851, allocations: 0 / 0.517 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.049e-05/0.3852, allocations: 3.984 kB / 0.517 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.078e-05/0.3852, allocations: 2.812 kB / 0.517 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.317e-06/0.3852, allocations: 0 / 0.517 GB, free: 36.76 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.3854, allocations: 54.72 kB / 0.517 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.126e-05/0.3854, allocations: 4 kB / 0.517 GB, free: 36.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.217e-05/0.3854, allocations: 29.7 kB / 0.5171 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.3856, allocations: 38.55 kB / 0.5171 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.3856, allocations: 0 / 0.5171 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.3856, allocations: 0 / 0.5171 GB, free: 36.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.277e-06/0.3856, allocations: 0 / 0.5171 GB, free: 36.69 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.0003767/0.386, allocations: 357.7 kB / 0.5174 GB, free: 36.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.3861, allocations: 8.281 kB / 0.5174 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.054e-05/0.3861, allocations: 0.9375 kB / 0.5174 GB, free: 36.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.782e-05/0.3862, allocations: 163.6 kB / 0.5176 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.3862, allocations: 4.375 kB / 0.5176 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.465e-05/0.3862, allocations: 3.219 kB / 0.5176 GB, free: 36.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.599e-05/0.3863, allocations: 33.14 kB / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3863, allocations: 192 / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.3864, allocations: 3.938 kB / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.3864, allocations: 0 / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.691e-05/0.3864, allocations: 0 / 0.5176 GB, free: 36.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.3865, allocations: 151.9 kB / 0.5178 GB, free: 35.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.775e-05/0.3866, allocations: 25.39 kB / 0.5178 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.852e-05/0.3866, allocations: 4.859 kB / 0.5178 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.3867, allocations: 0 / 0.5178 GB, free: 35.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.3867, allocations: 63.11 kB / 0.5179 GB, free: 35.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3867, allocations: 0 / 0.5179 GB, free: 35.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001868/0.3869, allocations: 68.45 kB / 0.5179 GB, free: 35.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.3869, allocations: 77.11 kB / 0.518 GB, free: 35.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.709e-05/0.387, allocations: 96.8 kB / 0.5181 GB, free: 35.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.557e-06/0.387, allocations: 25.7 kB / 0.5181 GB, free: 35.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.673e-05/0.387, allocations: 80.14 kB / 0.5182 GB, free: 35.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.387, allocations: 0 / 0.5182 GB, free: 35.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.024e-06/0.387, allocations: 0 / 0.5182 GB, free: 35.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.661e-05/0.3871, allocations: 314.3 kB / 0.5185 GB, free: 35.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.873e-06/0.3871, allocations: 3.594 kB / 0.5185 GB, free: 35.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.139e-06/0.3871, allocations: 3.938 kB / 0.5185 GB, free: 35.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.502e-05/0.3872, allocations: 71.7 kB / 0.5186 GB, free: 34.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3872, allocations: 0 / 0.5186 GB, free: 34.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.963e-05/0.3872, allocations: 60.41 kB / 0.5186 GB, free: 34.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.3873, allocations: 31.58 kB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3873, allocations: 3.984 kB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.3873, allocations: 6.906 kB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3873, allocations: 0 / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.3873, allocations: 0 / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.88e-05/0.3874, allocations: 0 / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.128e-06/0.3874, allocations: 3.984 kB / 0.5187 GB, free: 34.87 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 6.336e-05/0.3874, allocations: 145.7 kB / 0.5188 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.372e-06/0.3874, allocations: 0 / 0.5188 GB, free: 34.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.367e-06/0.3875, allocations: 13.62 kB / 0.5188 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3875, allocations: 3.938 kB / 0.5188 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3875, allocations: 0 / 0.5188 GB, free: 34.71 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.315e-05/0.3875, allocations: 81.05 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.3875, allocations: 4 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.385e-06/0.3875, allocations: 2.781 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.318e-05/0.3876, allocations: 7.469 kB / 0.5189 GB, free: 34.61 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.246e-05/0.3876, allocations: 186.9 kB / 0.5191 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 9.222e-05/0.3877, allocations: 243.5 kB / 0.5193 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.697e-05/0.3878, allocations: 10.88 kB / 0.5194 GB, free: 34.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.376e-05/0.3878, allocations: 75.28 kB / 0.5194 GB, free: 34.08 MB / 378.7 MB Notification: Performance of Backend: time 3.51e-07/0.3878, allocations: 0 / 0.5194 GB, free: 34.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007565/0.3886, allocations: 307 kB / 0.5197 GB, free: 33.89 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002495/0.3888, allocations: 0.5999 MB / 0.5203 GB, free: 33.23 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!