Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001265/0.001265, allocations: 178.5 kB / 17.39 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.4 MB / 223.5 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007936/0.0007937, allocations: 104.5 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.322/0.322, allocations: 43.56 MB / 363.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003618/0.0003618, allocations: 8 kB / 432.6 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1158, allocations: 58.85 MB / 491.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestInternal): time 0.0006231/0.1165, allocations: 224.4 kB / 491.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004987/0.117, allocations: 230.8 kB / 491.9 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.697e-05/0.117, allocations: 0 / 491.9 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.002e-05/0.1171, allocations: 0 / 491.9 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.622e-06/0.1171, allocations: 0 / 491.9 MB, free: 10.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002713/0.1173, allocations: 43.89 kB / 492 MB, free: 10.42 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.547e-05/0.1174, allocations: 0 / 492 MB, free: 10.42 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.848e-05/0.1174, allocations: 4 kB / 492 MB, free: 10.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.497e-05/0.1175, allocations: 0 / 492 MB, free: 10.41 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.263e-05/0.1175, allocations: 7.984 kB / 492 MB, free: 10.41 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.959e-06/0.1175, allocations: 0 / 492 MB, free: 10.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001198/0.1176, allocations: 59.89 kB / 492 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-06/0.1177, allocations: 0 / 492 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.071e-05/0.1177, allocations: 29.7 kB / 492.1 MB, free: 10.31 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.377e-05/0.1178, allocations: 35.94 kB / 492.1 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.1178, allocations: 0 / 492.1 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1178, allocations: 3.938 kB / 492.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.646e-06/0.1178, allocations: 3.938 kB / 492.1 MB, free: 10.27 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.0002712/0.1181, allocations: 357.3 kB / 492.5 MB, free: 9.863 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.1181, allocations: 12.02 kB / 492.5 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.847e-05/0.1182, allocations: 0.9375 kB / 492.5 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.897e-05/0.1183, allocations: 160.4 kB / 492.6 MB, free: 9.656 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.1183, allocations: 4.375 kB / 492.6 MB, free: 9.652 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.1183, allocations: 384 / 492.6 MB, free: 9.652 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.199e-05/0.1184, allocations: 26.27 kB / 492.7 MB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.1184, allocations: 192 / 492.7 MB, free: 9.621 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.1184, allocations: 11.94 kB / 492.7 MB, free: 9.609 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.902e-06/0.1184, allocations: 4 kB / 492.7 MB, free: 9.605 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.642e-05/0.1184, allocations: 3.938 kB / 492.7 MB, free: 9.602 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001145/0.1186, allocations: 149.7 kB / 492.8 MB, free: 9.406 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.311e-05/0.1186, allocations: 18.61 kB / 492.8 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.268e-05/0.1186, allocations: 4.859 kB / 492.8 MB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.583e-06/0.1186, allocations: 0 / 492.8 MB, free: 9.371 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.1187, allocations: 64.33 kB / 492.9 MB, free: 9.293 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1187, allocations: 0 / 492.9 MB, free: 9.293 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001507/0.1188, allocations: 75.17 kB / 493 MB, free: 9.207 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.1189, allocations: 81.11 kB / 493.1 MB, free: 9.109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.716e-05/0.1189, allocations: 89.86 kB / 493.1 MB, free: 9.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.1189, allocations: 25.7 kB / 493.2 MB, free: 8.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.02e-05/0.119, allocations: 80.14 kB / 493.2 MB, free: 8.898 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.384e-05/0.119, allocations: 0 / 493.2 MB, free: 8.898 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-06/0.119, allocations: 0 / 493.2 MB, free: 8.898 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.615e-05/0.1191, allocations: 318.9 kB / 493.6 MB, free: 8.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.739e-06/0.1191, allocations: 4 kB / 493.6 MB, free: 8.574 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.689e-06/0.1191, allocations: 0 / 493.6 MB, free: 8.574 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.634e-05/0.1192, allocations: 68.25 kB / 493.6 MB, free: 8.492 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1192, allocations: 0 / 493.6 MB, free: 8.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.834e-05/0.1192, allocations: 59.34 kB / 493.7 MB, free: 8.422 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.1193, allocations: 36.83 kB / 493.7 MB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1193, allocations: 0 / 493.7 MB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.1193, allocations: 8.031 kB / 493.7 MB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.034e-06/0.1193, allocations: 3.984 kB / 493.7 MB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.093e-06/0.1193, allocations: 0 / 493.7 MB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.557e-05/0.1193, allocations: 0 / 493.7 MB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.154e-06/0.1194, allocations: 4 kB / 493.7 MB, free: 8.367 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.978e-05/0.1194, allocations: 135.5 kB / 493.9 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.312e-06/0.1194, allocations: 0 / 493.9 MB, free: 8.219 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.536e-06/0.1195, allocations: 7.125 kB / 493.9 MB, free: 8.211 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1195, allocations: 3.938 kB / 493.9 MB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.1195, allocations: 7.938 kB / 493.9 MB, free: 8.199 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.624e-05/0.1195, allocations: 77.11 kB / 494 MB, free: 8.105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.1195, allocations: 3.984 kB / 494 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.905e-06/0.1195, allocations: 0 / 494 MB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.518e-05/0.1196, allocations: 4 kB / 494 MB, free: 8.098 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001094/0.1197, allocations: 198 kB / 494.2 MB, free: 7.879 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001323/0.1198, allocations: 244.5 kB / 494.4 MB, free: 7.617 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.43e-05/0.1198, allocations: 0 / 494.4 MB, free: 7.617 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.501e-05/0.1199, allocations: 75.28 kB / 494.5 MB, free: 7.543 MB / 378.7 MB Notification: Performance of Backend: time 2.61e-07/0.1199, allocations: 0 / 494.5 MB, free: 7.543 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007031/0.1206, allocations: 317.2 kB / 494.8 MB, free: 7.246 MB / 378.7 MB Notification: Performance of SimCode: time 0.0003267/0.1209, allocations: 0.5987 MB / 495.4 MB, free: 6.578 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!