Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.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) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003469, allocations: 12 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09573/0.0961, allocations: 44.51 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006215/0.09678, allocations: 212.7 kB / 309.2 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002401/0.09703, allocations: 55.77 kB / 309.2 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.457e-05/0.09707, allocations: 0 / 309.2 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.912e-05/0.09712, allocations: 0 / 309.2 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.654e-05/0.09721, allocations: 15.97 kB / 309.3 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001469/0.09736, allocations: 19.98 kB / 309.3 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 5.124e-05/0.09743, allocations: 11.97 kB / 309.3 MB, free: 0.7578 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.906e-05/0.09748, allocations: 4 kB / 309.3 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.073e-05/0.09752, allocations: 15.86 kB / 309.3 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.543e-05/0.09761, allocations: 15.98 kB / 309.3 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.09764, allocations: 4 kB / 309.3 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.09769, allocations: 4 kB / 309.3 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.785e-05/0.09773, allocations: 11.98 kB / 309.3 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.286e-05/0.09778, allocations: 37.62 kB / 309.4 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 6.871e-05/0.09786, allocations: 12 kB / 309.4 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.09787, allocations: 0 / 309.4 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.847e-06/0.09788, allocations: 3.984 kB / 309.4 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.526e-06/0.09789, allocations: 0 / 309.4 MB, free: 0.6445 MB / 250.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.0004379/0.09834, allocations: 327.3 kB / 309.7 MB, free: 284 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.09839, allocations: 8.031 kB / 309.7 MB, free: 276 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.27e-05/0.09844, allocations: 8 kB / 309.7 MB, free: 268 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001286/0.09857, allocations: 163.3 kB / 309.9 MB, free: 64 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.0986, allocations: 4 kB / 309.9 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.09863, allocations: 0 / 309.9 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002224/0.09886, allocations: 93.03 kB / 310 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.09888, allocations: 0 / 310 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.0989, allocations: 0 / 310 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.09892, allocations: 4 kB / 310 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.367e-05/0.099, allocations: 31.92 kB / 310 MB, free: 15.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002398/0.09925, allocations: 188.2 kB / 310.2 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001614/0.09942, allocations: 103.6 kB / 310.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.09945, allocations: 4.062 kB / 310.3 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.244e-05/0.0995, allocations: 38.48 kB / 310.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.733e-06/0.09951, allocations: 0 / 310.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004412/0.09996, allocations: 162 kB / 310.5 MB, free: 15.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.1001, allocations: 132.5 kB / 310.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.1002, allocations: 113.8 kB / 310.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.75e-05/0.1002, allocations: 25.7 kB / 310.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.1004, allocations: 154.6 kB / 310.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.1004, allocations: 15.83 kB / 310.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.1004, allocations: 0 / 310.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.1006, allocations: 310.8 kB / 311.2 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.36e-05/0.1007, allocations: 32.02 kB / 311.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.41e-05/0.1008, allocations: 55.36 kB / 311.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.464e-05/0.1009, allocations: 27.98 kB / 311.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1009, allocations: 0 / 311.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002053/0.1011, allocations: 105.5 kB / 311.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1011, allocations: 8 kB / 311.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.1011, allocations: 0 / 311.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1012, allocations: 0 / 311.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.463e-05/0.1012, allocations: 4 kB / 311.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1012, allocations: 3.984 kB / 311.5 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.427e-05/0.1013, allocations: 4 kB / 311.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.1013, allocations: 0 / 311.5 MB, free: 14.27 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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.0001074/0.1014, allocations: 121.8 kB / 311.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.085e-05/0.1014, allocations: 11.95 kB / 311.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.1015, allocations: 11.52 kB / 311.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1015, allocations: 0 / 311.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.1015, allocations: 4 kB / 311.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.181e-05/0.1015, allocations: 77.11 kB / 311.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.885e-05/0.1016, allocations: 4 kB / 311.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.464e-05/0.1016, allocations: 256 / 311.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.1016, allocations: 11.92 kB / 311.7 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003643/0.102, allocations: 438.7 kB / 312.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000453/0.1025, allocations: 0.5201 MB / 312.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.479e-05/0.1026, allocations: 35.98 kB / 312.7 MB, free: 13 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.948e-05/0.1026, allocations: 87.27 kB / 312.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of Backend: time 6.32e-07/0.1027, allocations: 0 / 312.8 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007297/0.1034, allocations: 142.1 kB / 312.9 MB, free: 12.78 MB / 266.7 MB Notification: Performance of SimCode: time 0.0005598/0.104, allocations: 0.5994 MB / 313.5 MB, free: 12.12 MB / 266.7 MB 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! Error: Internal error GetVarIndexListByMapping: No Element for A 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: 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946: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/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: success1 (no alias) initial: no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for success2 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:1: success2 (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for success3 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:2: success3 (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for success4 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:3: success4 (no alias) initial: no arrCref index:(10) []