Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestReadFile.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestReadFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result|result",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestReadFile") Notification: Performance of loadModel(ModelicaTest): time 2.407/2.407, allocations: 234.9 MB / 251.1 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004529/0.0004532, allocations: 12 kB / 314.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3576/0.358, allocations: 54.87 MB / 369.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006702/0.3588, allocations: 208.5 kB / 370 MB, free: 10.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001461/0.3603, allocations: 0.7209 MB / 370.7 MB, free: 9.793 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.979e-05/0.3603, allocations: 0 / 370.7 MB, free: 9.793 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.999e-06/0.3603, allocations: 0 / 370.7 MB, free: 9.793 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001394/0.3605, allocations: 3.984 kB / 370.7 MB, free: 9.789 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.3608, allocations: 47.77 kB / 370.8 MB, free: 9.742 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 3.139e-05/0.3608, allocations: 4 kB / 370.8 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.236e-05/0.3609, allocations: 0 / 370.8 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.819e-05/0.3609, allocations: 0 / 370.8 MB, free: 9.738 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.304e-05/0.361, allocations: 11.98 kB / 370.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.022e-05/0.361, allocations: 3.984 kB / 370.8 MB, free: 9.723 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001381/0.3612, allocations: 39.98 kB / 370.9 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-06/0.3612, allocations: 7.922 kB / 370.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.221e-05/0.3613, allocations: 29.64 kB / 370.9 MB, free: 9.641 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.3614, allocations: 31.95 kB / 370.9 MB, free: 9.609 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.3614, allocations: 0 / 370.9 MB, free: 9.609 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3614, allocations: 0 / 370.9 MB, free: 9.609 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.3614, allocations: 0 / 370.9 MB, free: 9.609 MB / 298.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.0003664/0.3618, allocations: 353 kB / 371.3 MB, free: 9.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.3618, allocations: 12.03 kB / 371.3 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.009e-05/0.3619, allocations: 3.953 kB / 371.3 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.362, allocations: 163.1 kB / 371.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.362, allocations: 0 / 371.4 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.3621, allocations: 4 kB / 371.4 MB, free: 8.992 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.826e-05/0.3621, allocations: 25.7 kB / 371.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3622, allocations: 0 / 371.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3622, allocations: 0 / 371.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.3622, allocations: 4 kB / 371.5 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.354e-05/0.3622, allocations: 15.88 kB / 371.5 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001482/0.3624, allocations: 149.7 kB / 371.6 MB, free: 8.746 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.718e-05/0.3625, allocations: 22.61 kB / 371.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.275e-06/0.3625, allocations: 0 / 371.7 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.421e-05/0.3625, allocations: 56.27 kB / 371.7 MB, free: 8.645 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.533e-06/0.3625, allocations: 0 / 371.7 MB, free: 8.645 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001937/0.3627, allocations: 75.39 kB / 371.8 MB, free: 8.559 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.964e-05/0.3628, allocations: 81.11 kB / 371.9 MB, free: 8.461 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.819e-05/0.3629, allocations: 93.8 kB / 372 MB, free: 8.359 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.3629, allocations: 25.7 kB / 372 MB, free: 8.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.169e-05/0.363, allocations: 150.6 kB / 372.1 MB, free: 8.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.353e-05/0.363, allocations: 0 / 372.1 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/0.363, allocations: 0 / 372.1 MB, free: 8.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.3631, allocations: 326.8 kB / 372.4 MB, free: 7.852 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.131e-05/0.3632, allocations: 4.25 kB / 372.4 MB, free: 7.848 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.334e-06/0.3632, allocations: 0 / 372.4 MB, free: 7.848 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.158e-05/0.3632, allocations: 29.7 kB / 372.5 MB, free: 7.812 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3632, allocations: 0 / 372.5 MB, free: 7.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.768e-05/0.3633, allocations: 55.41 kB / 372.5 MB, free: 7.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.3634, allocations: 37.64 kB / 372.6 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.3634, allocations: 3.984 kB / 372.6 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3634, allocations: 0 / 372.6 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.293e-06/0.3634, allocations: 3.938 kB / 372.6 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.3634, allocations: 96 / 372.6 MB, free: 7.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.988e-05/0.3635, allocations: 4 kB / 372.6 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.3635, allocations: 4 kB / 372.6 MB, free: 7.688 MB / 298.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 9.518e-05/0.3636, allocations: 139.5 kB / 372.7 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.3636, allocations: 0 / 372.7 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.035e-05/0.3636, allocations: 7.125 kB / 372.7 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3636, allocations: 0 / 372.7 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3637, allocations: 0 / 372.7 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.3637, allocations: 81.09 kB / 372.8 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.3637, allocations: 0 / 372.8 MB, free: 7.434 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.174e-05/0.3637, allocations: 4 kB / 372.8 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.164e-05/0.3638, allocations: 7.953 kB / 372.8 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001391/0.3639, allocations: 190.1 kB / 373 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001743/0.3641, allocations: 244.5 kB / 373.2 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.315e-05/0.3641, allocations: 4 kB / 373.2 MB, free: 6.945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.579e-05/0.3642, allocations: 83.33 kB / 373.3 MB, free: 6.863 MB / 298.7 MB Notification: Performance of Backend: time 8.22e-07/0.3642, allocations: 0 / 373.3 MB, free: 6.863 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006704/0.3649, allocations: 224.4 kB / 373.5 MB, free: 6.66 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004158/0.3653, allocations: 0.6072 MB / 374.2 MB, free: 5.984 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for result found! Error: Internal error GetVarIndexListByMapping: No Element for file found! Error: Internal error GetVarIndexListByMapping: No Element for result found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: file (no alias) initial: "/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Resources/Data/ReadStreamTestFile.txt" no arrCref index:(2) []