Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.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.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001569/0.001569, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.5 MB / 245.4 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009852/0.0009852, allocations: 99 kB / 297.5 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002458, allocations: 8 kB / 358.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2101/0.2103, allocations: 51.29 MB / 409.4 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08678/0.2971, allocations: 77.04 MB / 486.4 MB, free: 14.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001915/0.2974, allocations: 68.53 kB / 486.5 MB, free: 14.46 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.009982/0.3074, allocations: 3.659 MB / 490.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.3074, allocations: 0 / 490.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.3074, allocations: 0 / 490.1 MB, free: 10.81 MB / 362.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.0004389/0.3079, allocations: 405 kB / 490.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.3079, allocations: 12.03 kB / 490.5 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.308, allocations: 12.78 kB / 490.5 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.3083, allocations: 226.5 kB / 490.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.917e-06/0.3083, allocations: 384 / 490.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.3083, allocations: 384 / 490.8 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.3085, allocations: 74.47 kB / 490.8 MB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.3085, allocations: 4.188 kB / 490.8 MB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.652e-05/0.3085, allocations: 3.938 kB / 490.8 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3085, allocations: 0 / 490.8 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.096e-05/0.3086, allocations: 8 kB / 490.9 MB, free: 9.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003266/0.3089, allocations: 185.5 kB / 491 MB, free: 9.734 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.17e-05/0.3089, allocations: 22.58 kB / 491.1 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.858e-05/0.309, allocations: 8.797 kB / 491.1 MB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.784e-06/0.309, allocations: 4 kB / 491.1 MB, free: 9.688 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.309, allocations: 60.33 kB / 491.1 MB, free: 9.613 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-06/0.309, allocations: 0 / 491.1 MB, free: 9.613 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001413/0.3092, allocations: 45.62 kB / 491.2 MB, free: 9.562 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.773e-05/0.3093, allocations: 158.2 kB / 491.3 MB, free: 9.371 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002171/0.3095, allocations: 166.1 kB / 491.5 MB, free: 9.195 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3095, allocations: 29.7 kB / 491.5 MB, free: 9.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.071e-05/0.3096, allocations: 92.27 kB / 491.6 MB, free: 9.066 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.3096, allocations: 11.89 kB / 491.6 MB, free: 9.055 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-06/0.3096, allocations: 0 / 491.6 MB, free: 9.055 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.3098, allocations: 319.5 kB / 491.9 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.604e-05/0.3098, allocations: 7.938 kB / 491.9 MB, free: 8.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.401e-05/0.3098, allocations: 36.28 kB / 492 MB, free: 8.676 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.812e-05/0.3099, allocations: 24.91 kB / 492 MB, free: 8.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3099, allocations: 0 / 492 MB, free: 8.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.091e-05/0.31, allocations: 45.61 kB / 492 MB, free: 8.598 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.31, allocations: 8 kB / 492.1 MB, free: 8.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.31, allocations: 7.938 kB / 492.1 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.3101, allocations: 0 / 492.1 MB, free: 8.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.612e-05/0.3101, allocations: 7.938 kB / 492.1 MB, free: 8.574 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.3101, allocations: 3.984 kB / 492.1 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.808e-05/0.3102, allocations: 11.92 kB / 492.1 MB, free: 8.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.3102, allocations: 0 / 492.1 MB, free: 8.559 MB / 362.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.718e-05/0.3103, allocations: 117.9 kB / 492.2 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.3103, allocations: 7.906 kB / 492.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.812e-05/0.3104, allocations: 19.8 kB / 492.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.3104, allocations: 0 / 492.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.3104, allocations: 0 / 492.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.3104, allocations: 0 / 492.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002066/0.3106, allocations: 169.7 kB / 492.4 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3106, allocations: 3.938 kB / 492.4 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.115e-05/0.3107, allocations: 3.984 kB / 492.4 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3107, allocations: 4 kB / 492.4 MB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.036e-06/0.3107, allocations: 7.938 kB / 492.4 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3107, allocations: 0 / 492.4 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3107, allocations: 0 / 492.4 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001351/0.3108, allocations: 81 kB / 492.5 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.127e-05/0.3109, allocations: 97.03 kB / 492.6 MB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.311, allocations: 7.922 kB / 492.6 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.916e-05/0.3111, allocations: 4.094 kB / 492.6 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.044e-05/0.3111, allocations: 4 kB / 492.6 MB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-06/0.3111, allocations: 0 / 492.6 MB, free: 7.945 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001345/0.3112, allocations: 138.5 kB / 492.7 MB, free: 7.812 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3112, allocations: 0 / 492.7 MB, free: 7.812 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002575/0.3115, allocations: 20 kB / 492.8 MB, free: 7.793 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0003983/0.3119, allocations: 185.6 kB / 492.9 MB, free: 7.637 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.249e-05/0.312, allocations: 8 kB / 492.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.312, allocations: 4 kB / 492.9 MB, free: 7.625 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.01e-05/0.312, allocations: 8 kB / 493 MB, free: 7.617 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001731/0.3122, allocations: 8 kB / 493 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003155/0.3125, allocations: 160.6 kB / 493.1 MB, free: 7.422 MB / 362.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]