Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile") translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009693/0.0009693, allocations: 178.2 kB / 17.39 MB, free: 4.395 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.494/1.494, 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.0006703/0.0006703, allocations: 92.06 kB / 271.9 MB, free: 8.246 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.3354/0.3354, allocations: 43.57 MB / 363.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003805, allocations: 12 kB / 432.6 MB, free: 5.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1131, allocations: 58.85 MB / 491.5 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006258/0.1138, allocations: 216.5 kB / 491.7 MB, free: 10.69 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.1149, allocations: 0.7456 MB / 492.4 MB, free: 9.941 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.447e-05/0.1149, allocations: 0 / 492.4 MB, free: 9.941 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.039e-05/0.115, allocations: 4 kB / 492.4 MB, free: 9.938 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.1151, allocations: 11.92 kB / 492.4 MB, free: 9.926 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003935/0.1155, allocations: 45.78 kB / 492.5 MB, free: 9.887 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.207e-05/0.1156, allocations: 11.92 kB / 492.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.435e-05/0.1156, allocations: 0 / 492.5 MB, free: 9.875 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.867e-05/0.1156, allocations: 3.984 kB / 492.5 MB, free: 9.871 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.241e-05/0.1157, allocations: 4 kB / 492.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.298e-06/0.1157, allocations: 0 / 492.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000114/0.1159, allocations: 47.95 kB / 492.6 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.645e-06/0.1159, allocations: 0 / 492.6 MB, free: 9.82 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.1159, allocations: 29.64 kB / 492.6 MB, free: 9.785 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.727e-05/0.116, allocations: 39.95 kB / 492.6 MB, free: 9.746 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.116, allocations: 3.938 kB / 492.6 MB, free: 9.742 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.116, allocations: 0 / 492.6 MB, free: 9.742 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.116, allocations: 0 / 492.6 MB, free: 9.742 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.0003352/0.1164, allocations: 353.2 kB / 493 MB, free: 9.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1164, allocations: 12.03 kB / 493 MB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.966e-05/0.1165, allocations: 0.9375 kB / 493 MB, free: 9.328 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001142/0.1166, allocations: 160.4 kB / 493.1 MB, free: 9.133 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.46e-05/0.1166, allocations: 384 / 493.1 MB, free: 9.133 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-06/0.1166, allocations: 4.375 kB / 493.1 MB, free: 9.129 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.384e-05/0.1167, allocations: 34.25 kB / 493.2 MB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.1167, allocations: 192 / 493.2 MB, free: 9.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.719e-06/0.1168, allocations: 3.938 kB / 493.2 MB, free: 9.086 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.1168, allocations: 0 / 493.2 MB, free: 9.086 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.612e-05/0.1168, allocations: 7.938 kB / 493.2 MB, free: 9.078 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.1169, allocations: 145.7 kB / 493.3 MB, free: 8.887 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.439e-05/0.117, allocations: 14.58 kB / 493.3 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.99e-05/0.117, allocations: 16.94 kB / 493.4 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.668e-06/0.117, allocations: 0 / 493.4 MB, free: 8.844 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.937e-05/0.1171, allocations: 56.27 kB / 493.4 MB, free: 8.773 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.1171, allocations: 0 / 493.4 MB, free: 8.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001599/0.1172, allocations: 71.27 kB / 493.5 MB, free: 8.691 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.1173, allocations: 85.09 kB / 493.6 MB, free: 8.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.835e-05/0.1174, allocations: 97.98 kB / 493.7 MB, free: 8.484 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.1174, allocations: 25.7 kB / 493.7 MB, free: 8.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.561e-05/0.1174, allocations: 80.14 kB / 493.8 MB, free: 8.371 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.325e-05/0.1174, allocations: 0 / 493.8 MB, free: 8.371 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-06/0.1174, allocations: 0 / 493.8 MB, free: 8.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1175, allocations: 318.8 kB / 494.1 MB, free: 8.051 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.154e-06/0.1176, allocations: 0 / 494.1 MB, free: 8.051 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.314e-06/0.1176, allocations: 0 / 494.1 MB, free: 8.051 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.304e-05/0.1176, allocations: 72.39 kB / 494.2 MB, free: 7.965 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1176, allocations: 0 / 494.2 MB, free: 7.965 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.381e-05/0.1177, allocations: 67.33 kB / 494.2 MB, free: 7.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.716e-05/0.1178, allocations: 29.7 kB / 494.2 MB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.1178, allocations: 0 / 494.2 MB, free: 7.852 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.1178, allocations: 3.938 kB / 494.3 MB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.1178, allocations: 4 kB / 494.3 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.1178, allocations: 0 / 494.3 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.449e-05/0.1178, allocations: 0 / 494.3 MB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.1179, allocations: 0 / 494.3 MB, free: 7.844 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 8.56e-05/0.1179, allocations: 147.6 kB / 494.4 MB, free: 7.684 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.276e-06/0.118, allocations: 4 kB / 494.4 MB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.067e-05/0.118, allocations: 7.062 kB / 494.4 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-06/0.118, allocations: 0 / 494.4 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.118, allocations: 0 / 494.4 MB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.11e-05/0.118, allocations: 77.11 kB / 494.5 MB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.118, allocations: 4 kB / 494.5 MB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.265e-06/0.1181, allocations: 0 / 494.5 MB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.434e-05/0.1181, allocations: 0 / 494.5 MB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001196/0.1182, allocations: 202 kB / 494.7 MB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001544/0.1184, allocations: 244.5 kB / 494.9 MB, free: 7.09 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.7e-05/0.1184, allocations: 4 kB / 494.9 MB, free: 7.086 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.736e-05/0.1184, allocations: 75.28 kB / 495 MB, free: 7.012 MB / 378.7 MB Notification: Performance of Backend: time 2.1e-07/0.1184, allocations: 0 / 495 MB, free: 7.012 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006044/0.119, allocations: 216.2 kB / 495.2 MB, free: 6.797 MB / 378.7 MB Notification: Performance of SimCode: time 0.0004028/0.1195, allocations: 0.6142 MB / 495.8 MB, free: 6.113 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 file 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: file (no alias) initial: "/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt" no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for result found! Error: Internal error GetVarIndexListByMapping: No Element for file found!