Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|success1|success2|success3|success4",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002006/0.002005, allocations: 199.4 kB / 18.05 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.189/2.189, allocations: 226.5 MB / 245.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001832/0.001832, allocations: 93.23 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004535/0.0004544, allocations: 8 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5711/0.5716, allocations: 51.31 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001121/0.5728, allocations: 199.8 kB / 408.9 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004398/0.5733, allocations: 63.81 kB / 408.9 MB, free: 27.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.908e-05/0.5734, allocations: 0 / 408.9 MB, free: 27.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.307e-05/0.5735, allocations: 0 / 408.9 MB, free: 27.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001581/0.5736, allocations: 15.97 kB / 409 MB, free: 27.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.574, allocations: 16.52 kB / 409 MB, free: 27.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.5741, allocations: 11.98 kB / 409 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.5743, allocations: 4.547 kB / 409 MB, free: 27.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.897e-05/0.5743, allocations: 16.78 kB / 409 MB, free: 27.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.5745, allocations: 23.95 kB / 409 MB, free: 27.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.5745, allocations: 1.781 kB / 409 MB, free: 27.35 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.934e-05/0.5746, allocations: 4 kB / 409 MB, free: 27.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.549e-05/0.5747, allocations: 4 kB / 409 MB, free: 27.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.842e-05/0.5748, allocations: 33.64 kB / 409.1 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001618/0.5749, allocations: 24.97 kB / 409.1 MB, free: 27.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.427e-05/0.575, allocations: 0 / 409.1 MB, free: 27.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.497e-06/0.575, allocations: 3.938 kB / 409.1 MB, free: 27.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.575, allocations: 1.406 kB / 409.1 MB, free: 27.28 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.0006102/0.5756, allocations: 349.2 kB / 409.4 MB, free: 26.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.261e-05/0.5757, allocations: 11.97 kB / 409.5 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.905e-05/0.5757, allocations: 5.688 kB / 409.5 MB, free: 26.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002026/0.576, allocations: 173.3 kB / 409.6 MB, free: 26.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.163e-05/0.576, allocations: 5.594 kB / 409.6 MB, free: 26.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.576, allocations: 384 / 409.6 MB, free: 26.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002719/0.5763, allocations: 59.8 kB / 409.7 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.548e-05/0.5764, allocations: 192 / 409.7 MB, free: 26.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.493e-05/0.5764, allocations: 11.88 kB / 409.7 MB, free: 26.58 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.5764, allocations: 0 / 409.7 MB, free: 26.58 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.169e-05/0.5765, allocations: 24.86 kB / 409.7 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002935/0.5768, allocations: 165.5 kB / 409.9 MB, free: 26.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.595e-05/0.5769, allocations: 47.98 kB / 409.9 MB, free: 26.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.452e-05/0.5769, allocations: 39.89 kB / 410 MB, free: 26.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.577, allocations: 0.5312 kB / 410 MB, free: 26.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.986e-05/0.577, allocations: 56.95 kB / 410 MB, free: 26.18 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 2.405e-06/0.5771, allocations: 3.406 kB / 410 MB, free: 26.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004613/0.5775, allocations: 191.2 kB / 410.2 MB, free: 25.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.5776, allocations: 81.11 kB / 410.3 MB, free: 25.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.5777, allocations: 113.8 kB / 410.4 MB, free: 25.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.834e-05/0.5778, allocations: 25.7 kB / 410.4 MB, free: 25.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.195e-05/0.5778, allocations: 84.14 kB / 410.5 MB, free: 25.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.913e-05/0.5779, allocations: 4 kB / 410.5 MB, free: 25.64 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-06/0.5779, allocations: 3.25 kB / 410.5 MB, free: 25.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.5781, allocations: 314.8 kB / 410.8 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.953e-05/0.5781, allocations: 27.98 kB / 410.9 MB, free: 25.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.382e-05/0.5782, allocations: 23.98 kB / 410.9 MB, free: 25.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.5783, allocations: 120.2 kB / 411 MB, free: 25.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.5783, allocations: 0 / 411 MB, free: 25.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001866/0.5785, allocations: 159.2 kB / 411.2 MB, free: 24.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.599e-05/0.5786, allocations: 35.41 kB / 411.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.5786, allocations: 0 / 411.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.527e-05/0.5786, allocations: 7.938 kB / 411.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.5786, allocations: 0 / 411.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.5786, allocations: 0 / 411.2 MB, free: 24.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.949e-05/0.5787, allocations: 4.094 kB / 411.2 MB, free: 24.92 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.5787, allocations: 4 kB / 411.2 MB, free: 24.92 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.0001425/0.5788, allocations: 143.5 kB / 411.3 MB, free: 24.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.5789, allocations: 4 kB / 411.4 MB, free: 24.76 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.88e-05/0.5789, allocations: 11.84 kB / 411.4 MB, free: 24.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.5789, allocations: 0 / 411.4 MB, free: 24.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.5789, allocations: 0 / 411.4 MB, free: 24.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.281e-05/0.579, allocations: 81.02 kB / 411.4 MB, free: 24.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.579, allocations: 12.17 kB / 411.5 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.497e-05/0.579, allocations: 7.938 kB / 411.5 MB, free: 24.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.25e-05/0.5791, allocations: 8 kB / 411.5 MB, free: 24.61 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002677/0.5794, allocations: 294.2 kB / 411.8 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003026/0.5797, allocations: 340.4 kB / 412.1 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 5.99e-05/0.5797, allocations: 39.98 kB / 412.1 MB, free: 23.9 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.657e-05/0.5798, allocations: 95.33 kB / 412.2 MB, free: 23.81 MB / 298.7 MB Notification: Performance of Backend: time 2e-07/0.5798, allocations: 0 / 412.2 MB, free: 23.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009256/0.5807, allocations: 199.9 kB / 412.4 MB, free: 23.61 MB / 298.7 MB Notification: Performance of SimCode: time 0.0006729/0.5814, allocations: 0.6456 MB / 413.1 MB, free: 22.9 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!