Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 195.1 kB / 16.76 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 226.5 MB / 244.1 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007595/0.0007596, allocations: 95.81 kB / 296.1 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2965/0.2965, allocations: 44.83 MB / 392.9 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002519/0.000252, allocations: 11.98 kB / 465.9 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3065/0.3068, allocations: 62.95 MB / 0.5165 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0005148/0.3074, allocations: 221.1 kB / 0.5167 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.005305/0.3127, allocations: 4.619 MB / 0.5212 GB, free: 33.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.98e-05/0.3127, allocations: 0 / 0.5212 GB, free: 33.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.3128, allocations: 0 / 0.5212 GB, free: 33.95 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.075e-05/0.3128, allocations: 0 / 0.5212 GB, free: 33.95 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:214:3-483:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.006288/0.3191, allocations: 2.575 MB / 0.5237 GB, free: 33.16 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.706e-05/0.3191, allocations: 3.984 kB / 0.5237 GB, free: 33.16 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.249e-05/0.3192, allocations: 7.234 kB / 0.5237 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.3192, allocations: 3.031 kB / 0.5237 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.987e-05/0.3193, allocations: 3.938 kB / 0.5237 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.3193, allocations: 0 / 0.5237 GB, free: 33.15 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03889/0.3582, allocations: 19.8 MB / 0.5431 GB, free: 30.04 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.672e-05/0.3582, allocations: 8 kB / 0.5431 GB, free: 30.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.991e-05/0.3583, allocations: 25.7 kB / 0.5431 GB, free: 30 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.03375/0.392, allocations: 20.35 MB / 0.563 GB, free: 9.828 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.3921, allocations: 0 / 0.563 GB, free: 9.828 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.3921, allocations: 0 / 0.563 GB, free: 9.828 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.3921, allocations: 4 kB / 0.563 GB, free: 9.824 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.008037/0.4002, allocations: 0.6533 MB / 0.5636 GB, free: 9.117 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.4002, allocations: 8.031 kB / 0.5636 GB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.4003, allocations: 0.9375 kB / 0.5636 GB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.573e-05/0.4003, allocations: 167.2 kB / 0.5638 GB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.4004, allocations: 4 kB / 0.5638 GB, free: 8.902 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.165e-06/0.4004, allocations: 4 kB / 0.5638 GB, free: 8.898 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.542e-05/0.4005, allocations: 25.7 kB / 0.5638 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.4005, allocations: 0 / 0.5638 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.4005, allocations: 0 / 0.5638 GB, free: 8.867 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.4005, allocations: 11.92 kB / 0.5638 GB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.686e-05/0.4005, allocations: 0 / 0.5638 GB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.931e-05/0.4006, allocations: 145.6 kB / 0.564 GB, free: 8.664 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.355e-05/0.4007, allocations: 34.53 kB / 0.564 GB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.157e-05/0.4007, allocations: 4.859 kB / 0.564 GB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.4007, allocations: 0 / 0.564 GB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.4007, allocations: 56.27 kB / 0.5641 GB, free: 8.543 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4007, allocations: 64 / 0.5641 GB, free: 8.543 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001472/0.4009, allocations: 67.33 kB / 0.5641 GB, free: 8.465 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.194e-05/0.4009, allocations: 85.11 kB / 0.5642 GB, free: 8.363 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.766e-05/0.4009, allocations: 93.98 kB / 0.5643 GB, free: 8.262 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.4009, allocations: 25.7 kB / 0.5643 GB, free: 8.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.297e-06/0.401, allocations: 80.14 kB / 0.5644 GB, free: 8.148 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.401, allocations: 1.547 kB / 0.5644 GB, free: 8.148 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.401, allocations: 0 / 0.5644 GB, free: 8.148 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.305e-05/0.401, allocations: 314.8 kB / 0.5647 GB, free: 7.832 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.416e-06/0.4011, allocations: 4 kB / 0.5647 GB, free: 7.828 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.829e-06/0.4011, allocations: 0 / 0.5647 GB, free: 7.828 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.157e-05/0.4011, allocations: 64.33 kB / 0.5648 GB, free: 7.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4011, allocations: 3.938 kB / 0.5648 GB, free: 7.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.061e-05/0.4012, allocations: 63.39 kB / 0.5648 GB, free: 7.672 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/0.4012, allocations: 33.7 kB / 0.5649 GB, free: 7.633 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.4012, allocations: 7.922 kB / 0.5649 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.4012, allocations: 0 / 0.5649 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.4012, allocations: 0 / 0.5649 GB, free: 7.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.4012, allocations: 4 kB / 0.5649 GB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.724e-05/0.4013, allocations: 0 / 0.5649 GB, free: 7.621 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.4013, allocations: 4 kB / 0.5649 GB, free: 7.617 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 4.816e-05/0.4013, allocations: 143.5 kB / 0.565 GB, free: 7.461 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.963e-06/0.4013, allocations: 3.906 kB / 0.565 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.876e-06/0.4013, allocations: 3.125 kB / 0.565 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-06/0.4014, allocations: 4 kB / 0.565 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.4014, allocations: 0 / 0.565 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.33e-05/0.4014, allocations: 77.11 kB / 0.5651 GB, free: 7.359 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.4014, allocations: 3.938 kB / 0.5651 GB, free: 7.355 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.678e-06/0.4014, allocations: 4 kB / 0.5651 GB, free: 7.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.076e-05/0.4014, allocations: 4 kB / 0.5651 GB, free: 7.348 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.898e-05/0.4015, allocations: 198 kB / 0.5653 GB, free: 7.129 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.609e-05/0.4016, allocations: 232.5 kB / 0.5655 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.581e-05/0.4016, allocations: 11.94 kB / 0.5655 GB, free: 6.867 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.204e-05/0.4016, allocations: 75.28 kB / 0.5656 GB, free: 6.793 MB / 378.7 MB Notification: Performance of Backend: time 3.61e-07/0.4016, allocations: 0 / 0.5656 GB, free: 6.793 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01988/0.4215, allocations: 0.9938 MB / 0.5666 GB, free: 5.809 MB / 378.7 MB Notification: Performance of SimCode: time 0.0002482/0.4218, allocations: 0.6065 MB / 0.5672 GB, free: 5.133 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 result found!