Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.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) 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(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002114/0.002113, allocations: 178 kB / 17.39 MB, free: 4.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.613/2.613, allocations: 205.4 MB / 223.5 MB, free: 9.004 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.001156/0.001181, allocations: 102.6 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004941, allocations: 8 kB / 328.2 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4908/0.4913, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0009221/0.4923, allocations: 224.6 kB / 376 MB, free: 45.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003211/0.4927, allocations: 46.11 kB / 376 MB, free: 45.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.57e-05/0.4927, allocations: 0 / 376 MB, free: 45.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.538e-05/0.4928, allocations: 1.531 kB / 376 MB, free: 45.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001086/0.4929, allocations: 18.75 kB / 376 MB, free: 45.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.4931, allocations: 19.61 kB / 376 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.216e-05/0.4932, allocations: 16.7 kB / 376.1 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.221e-05/0.4933, allocations: 1.156 kB / 376.1 MB, free: 45.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.651e-05/0.4933, allocations: 10.45 kB / 376.1 MB, free: 45.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.4935, allocations: 23.75 kB / 376.1 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.4935, allocations: 5.688 kB / 376.1 MB, free: 45.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.222e-05/0.4936, allocations: 8.156 kB / 376.1 MB, free: 45.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.255e-05/0.4936, allocations: 13.03 kB / 376.1 MB, free: 45.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.915e-05/0.4937, allocations: 33.33 kB / 376.1 MB, free: 45.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.4938, allocations: 17.03 kB / 376.2 MB, free: 45.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.4938, allocations: 0 / 376.2 MB, free: 45.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4938, allocations: 1.062 kB / 376.2 MB, free: 45.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.201e-06/0.4938, allocations: 0 / 376.2 MB, free: 45.12 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004135/0.4943, allocations: 356.8 kB / 376.5 MB, free: 44.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.447e-05/0.4944, allocations: 8.219 kB / 376.5 MB, free: 44.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.574e-05/0.4944, allocations: 7.062 kB / 376.5 MB, free: 44.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001515/0.4946, allocations: 175.3 kB / 376.7 MB, free: 44.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.4946, allocations: 1.438 kB / 376.7 MB, free: 44.51 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.4946, allocations: 2.906 kB / 376.7 MB, free: 44.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.4948, allocations: 62.23 kB / 376.8 MB, free: 44.47 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.4948, allocations: 1.219 kB / 376.8 MB, free: 44.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.4948, allocations: 5.094 kB / 376.8 MB, free: 44.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.4949, allocations: 0 / 376.8 MB, free: 44.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.614e-05/0.4949, allocations: 25.89 kB / 376.8 MB, free: 44.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001835/0.4951, allocations: 159.5 kB / 377 MB, free: 44.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.4952, allocations: 49.91 kB / 377 MB, free: 44.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.716e-05/0.4953, allocations: 32.33 kB / 377 MB, free: 44.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.333e-06/0.4953, allocations: 1.25 kB / 377 MB, free: 44.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.77e-05/0.4954, allocations: 61.52 kB / 377.1 MB, free: 44.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.4954, allocations: 3.938 kB / 377.1 MB, free: 44.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004716/0.4959, allocations: 180.6 kB / 377.3 MB, free: 44.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/0.4959, allocations: 86.14 kB / 377.4 MB, free: 43.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.4961, allocations: 111.2 kB / 377.5 MB, free: 43.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.4961, allocations: 25.7 kB / 377.5 MB, free: 43.81 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.432e-05/0.4961, allocations: 86.78 kB / 377.6 MB, free: 43.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.4962, allocations: 13.03 kB / 377.6 MB, free: 43.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-06/0.4962, allocations: 1 kB / 377.6 MB, free: 43.71 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4963, allocations: 312.3 kB / 377.9 MB, free: 43.4 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.727e-05/0.4964, allocations: 25.55 kB / 377.9 MB, free: 43.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.144e-05/0.4964, allocations: 29.92 kB / 378 MB, free: 43.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.4966, allocations: 120.7 kB / 378.1 MB, free: 43.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.4966, allocations: 3.938 kB / 378.1 MB, free: 43.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00023/0.4968, allocations: 151.8 kB / 378.2 MB, free: 43.22 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.4969, allocations: 35.33 kB / 378.3 MB, free: 43.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.4969, allocations: 2.031 kB / 378.3 MB, free: 43.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.4969, allocations: 7.922 kB / 378.3 MB, free: 43.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.036e-06/0.4969, allocations: 4 kB / 378.3 MB, free: 43.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.497, allocations: 7.922 kB / 378.3 MB, free: 43.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.669e-05/0.497, allocations: 6.5 kB / 378.3 MB, free: 43.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.207e-05/0.497, allocations: 5.406 kB / 378.3 MB, free: 43.16 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: 4 (success1,success2,success3,success4) * 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 0.0001167/0.4971, allocations: 140.3 kB / 378.4 MB, free: 43.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.491e-05/0.4972, allocations: 7.141 kB / 378.4 MB, free: 43.01 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.126e-05/0.4972, allocations: 8.875 kB / 378.4 MB, free: 43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4972, allocations: 1.219 kB / 378.4 MB, free: 43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.4972, allocations: 0 / 378.4 MB, free: 43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.829e-05/0.4973, allocations: 81.98 kB / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.4973, allocations: 2.062 kB / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.357e-05/0.4973, allocations: 1.219 kB / 378.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.871e-05/0.4973, allocations: 5.062 kB / 378.5 MB, free: 42.9 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003202/0.4977, allocations: 300.3 kB / 378.8 MB, free: 42.67 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000346/0.498, allocations: 345.3 kB / 379.2 MB, free: 42.4 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.659e-05/0.4981, allocations: 39.45 kB / 379.2 MB, free: 42.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.685e-05/0.4982, allocations: 88.02 kB / 379.3 MB, free: 42.31 MB / 298.7 MB Notification: Performance of Backend: time 5.41e-07/0.4982, allocations: 64 / 379.3 MB, free: 42.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007771/0.499, allocations: 196.1 kB / 379.5 MB, free: 42.16 MB / 298.7 MB Notification: Performance of SimCode: time 0.000587/0.4996, allocations: 0.6487 MB / 380.1 MB, free: 41.47 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for A 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: A[1,1] (no alias) initial: 11.0 arrCref:A index:(1) [3,2] Error: Internal error GetVarIndexListByMapping: No Element for A 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:1: A[1,2] (no alias) initial: 12.0 no arrCref index:(2) [3,2] Error: Internal error GetVarIndexListByMapping: No Element for A 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:2: A[2,1] (no alias) initial: 21.0 no arrCref index:(3) [3,2] Error: Internal error GetVarIndexListByMapping: No Element for A 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:3: A[2,2] (no alias) initial: 22.0 no arrCref index:(4) [3,2] Error: Internal error GetVarIndexListByMapping: No Element for A 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:4: A[3,1] (no alias) initial: 31.0 no arrCref index:(5) [3,2] Error: Internal error GetVarIndexListByMapping: No Element for A 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:5: A[3,2] (no alias) initial: 32.0 no arrCref index:(6) [3,2] Error: Internal error GetVarIndexListByMapping: No Element for success1 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: success1 (no alias) initial: no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for success2 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:1: success2 (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for success3 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:2: success3 (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for success4 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:3: success4 (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for A found! Error: Internal error GetVarIndexListByMapping: No Element for success1 found! Error: Internal error GetVarIndexListByMapping: No Element for success2 found! Error: Internal error GetVarIndexListByMapping: No Element for success3 found! Error: Internal error GetVarIndexListByMapping: No Element for success4 found!