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.001079/0.001079, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.209/1.209, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008442/0.0008443, allocations: 103 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001892/0.0001892, allocations: 4 kB / 357.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.1695, allocations: 51.49 MB / 409.4 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07881/0.2483, allocations: 77.11 MB / 486.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002179/0.2486, allocations: 67.97 kB / 486.6 MB, free: 13.45 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.009165/0.2578, allocations: 3.646 MB / 490.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.2578, allocations: 3.984 kB / 490.2 MB, free: 9.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.2578, allocations: 6.562 kB / 490.2 MB, free: 9.801 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.0003781/0.2582, allocations: 404.8 kB / 490.6 MB, free: 9.352 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.2583, allocations: 8.031 kB / 490.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.604e-05/0.2583, allocations: 11.89 kB / 490.7 MB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002634/0.2586, allocations: 214.9 kB / 490.9 MB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.2586, allocations: 7.953 kB / 490.9 MB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.2586, allocations: 0 / 490.9 MB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.2587, allocations: 73.92 kB / 490.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.2587, allocations: 0 / 490.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.2587, allocations: 0 / 490.9 MB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.2588, allocations: 4 kB / 490.9 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.427e-05/0.2588, allocations: 11.92 kB / 491 MB, free: 8.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002667/0.2591, allocations: 185.7 kB / 491.1 MB, free: 8.734 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.049e-05/0.2591, allocations: 18.58 kB / 491.2 MB, free: 8.707 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-06/0.2591, allocations: 3.953 kB / 491.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.2591, allocations: 56.27 kB / 491.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.2591, allocations: 0 / 491.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001219/0.2593, allocations: 53.72 kB / 491.3 MB, free: 8.574 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.2594, allocations: 162.2 kB / 491.4 MB, free: 8.379 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.2595, allocations: 155.2 kB / 491.6 MB, free: 8.219 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.2595, allocations: 25.7 kB / 491.6 MB, free: 8.188 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.01e-05/0.2596, allocations: 96.12 kB / 491.7 MB, free: 8.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.537e-05/0.2596, allocations: 3.906 kB / 491.7 MB, free: 8.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-06/0.2596, allocations: 0 / 491.7 MB, free: 8.086 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.098e-05/0.2597, allocations: 318.8 kB / 492 MB, free: 7.766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.181e-05/0.2597, allocations: 3.984 kB / 492 MB, free: 7.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.219e-05/0.2598, allocations: 44.95 kB / 492.1 MB, free: 7.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.12e-05/0.2598, allocations: 15.06 kB / 492.1 MB, free: 7.691 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2598, allocations: 0 / 492.1 MB, free: 7.691 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.613e-05/0.2599, allocations: 49.66 kB / 492.1 MB, free: 7.637 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/0.2599, allocations: 4 kB / 492.1 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.2599, allocations: 4.094 kB / 492.1 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.2599, allocations: 0 / 492.1 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.718e-05/0.26, allocations: 4 kB / 492.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.26, allocations: 3.984 kB / 492.1 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.898e-05/0.26, allocations: 11.84 kB / 492.2 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.328e-06/0.2601, allocations: 0 / 492.2 MB, free: 7.609 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 7.466e-05/0.2601, allocations: 117.8 kB / 492.3 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.881e-05/0.2602, allocations: 15.8 kB / 492.3 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.058e-05/0.2602, allocations: 11.86 kB / 492.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.2602, allocations: 7.938 kB / 492.3 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2602, allocations: 0 / 492.3 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.2602, allocations: 48 / 492.3 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001669/0.2604, allocations: 181.6 kB / 492.5 MB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2604, allocations: 0 / 492.5 MB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.508e-05/0.2604, allocations: 4 kB / 492.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2604, allocations: 0 / 492.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.2604, allocations: 3.953 kB / 492.5 MB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2604, allocations: 0 / 492.5 MB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.2605, allocations: 0 / 492.5 MB, free: 7.219 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001047/0.2606, allocations: 73.12 kB / 492.6 MB, free: 7.129 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.08e-05/0.2606, allocations: 97.02 kB / 492.7 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.2607, allocations: 0 / 492.7 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.069e-05/0.2607, allocations: 11.95 kB / 492.7 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.557e-06/0.2608, allocations: 0 / 492.7 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.2608, allocations: 4 kB / 492.7 MB, free: 7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001009/0.2609, allocations: 133.8 kB / 492.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2609, allocations: 4.031 kB / 492.8 MB, free: 6.867 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000201/0.2611, allocations: 31.98 kB / 492.8 MB, free: 6.836 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.000296/0.2614, allocations: 179.9 kB / 493 MB, free: 6.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 6.269e-05/0.2615, allocations: 8 kB / 493 MB, free: 6.684 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.2615, allocations: 3.938 kB / 493 MB, free: 6.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.588e-05/0.2615, allocations: 8 kB / 493 MB, free: 6.672 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.695e-05/0.2616, allocations: 0 / 493 MB, free: 6.672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002378/0.2618, allocations: 168.7 kB / 493.2 MB, free: 6.473 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]