Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002143/0.002143, allocations: 203.8 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.235/3.235, allocations: 226.5 MB / 245.4 MB, free: 6.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001409/0.001409, allocations: 103.8 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004653/0.0004655, allocations: 4 kB / 357.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4772/0.4777, allocations: 51.29 MB / 408.6 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1654/0.6431, allocations: 77.04 MB / 485.7 MB, free: 14.57 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003203/0.6435, allocations: 71.95 kB / 485.8 MB, free: 14.5 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.01628/0.6598, allocations: 3.651 MB / 489.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.6599, allocations: 0 / 489.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.6599, allocations: 0 / 489.4 MB, free: 10.86 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.0007395/0.6607, allocations: 409 kB / 489.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.369e-05/0.6608, allocations: 10.44 kB / 489.8 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.392e-05/0.6609, allocations: 12.78 kB / 489.8 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004493/0.6613, allocations: 214.7 kB / 490 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.6613, allocations: 8.375 kB / 490 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.925e-05/0.6614, allocations: 4.375 kB / 490.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002017/0.6616, allocations: 81.02 kB / 490.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.6616, allocations: 192 / 490.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.6616, allocations: 3.938 kB / 490.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.6617, allocations: 4 kB / 490.1 MB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.018e-05/0.6617, allocations: 4 kB / 490.1 MB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.6623, allocations: 189.5 kB / 490.3 MB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.068e-05/0.6623, allocations: 14.58 kB / 490.3 MB, free: 9.754 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.269e-05/0.6624, allocations: 8.922 kB / 490.4 MB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.6624, allocations: 3.938 kB / 490.4 MB, free: 9.738 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.808e-05/0.6625, allocations: 64.27 kB / 490.4 MB, free: 9.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.403e-06/0.6625, allocations: 4 kB / 490.4 MB, free: 9.656 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002122/0.6627, allocations: 41.62 kB / 490.5 MB, free: 9.609 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.6628, allocations: 158.2 kB / 490.6 MB, free: 9.418 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002704/0.6631, allocations: 170.1 kB / 490.8 MB, free: 9.238 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.6632, allocations: 25.7 kB / 490.8 MB, free: 9.207 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.048e-05/0.6633, allocations: 92.14 kB / 490.9 MB, free: 9.113 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.6633, allocations: 3.906 kB / 490.9 MB, free: 9.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-06/0.6633, allocations: 4 kB / 490.9 MB, free: 9.105 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.6635, allocations: 323.6 kB / 491.2 MB, free: 8.781 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.527e-05/0.6635, allocations: 0 / 491.2 MB, free: 8.781 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.257e-05/0.6636, allocations: 48.22 kB / 491.3 MB, free: 8.719 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.187e-05/0.6637, allocations: 16.86 kB / 491.3 MB, free: 8.699 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.6637, allocations: 0 / 491.3 MB, free: 8.699 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001207/0.6638, allocations: 49.66 kB / 491.3 MB, free: 8.645 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.6639, allocations: 10.34 kB / 491.3 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.6639, allocations: 3.938 kB / 491.3 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.6639, allocations: 0 / 491.3 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.944e-05/0.664, allocations: 0 / 491.3 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.664, allocations: 7.938 kB / 491.4 MB, free: 8.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.6641, allocations: 11.92 kB / 491.4 MB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.6641, allocations: 0 / 491.4 MB, free: 8.613 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 0.0001379/0.6643, allocations: 117.8 kB / 491.5 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.6643, allocations: 11.94 kB / 491.5 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.926e-05/0.6643, allocations: 15.8 kB / 491.5 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.6644, allocations: 0 / 491.5 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6644, allocations: 0 / 491.5 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.6644, allocations: 0 / 491.5 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003404/0.6647, allocations: 177.6 kB / 491.7 MB, free: 8.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.6647, allocations: 3.938 kB / 491.7 MB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.6648, allocations: 3.984 kB / 491.7 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.6648, allocations: 0 / 491.7 MB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.6648, allocations: 7.938 kB / 491.7 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.6648, allocations: 0 / 491.7 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6648, allocations: 4 kB / 491.7 MB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001879/0.665, allocations: 73.06 kB / 491.8 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/0.6652, allocations: 96.94 kB / 491.9 MB, free: 8.016 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.6652, allocations: 7.938 kB / 491.9 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.906e-05/0.6653, allocations: 7.984 kB / 491.9 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.244e-05/0.6653, allocations: 0 / 491.9 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.6653, allocations: 4.094 kB / 491.9 MB, free: 7.996 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001811/0.6655, allocations: 142.2 kB / 492 MB, free: 7.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6655, allocations: 0 / 492 MB, free: 7.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003553/0.6659, allocations: 20 kB / 492 MB, free: 7.84 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.0005719/0.6665, allocations: 168.8 kB / 492.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.6666, allocations: 15.98 kB / 492.2 MB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6666, allocations: 3.938 kB / 492.2 MB, free: 7.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.32e-05/0.6666, allocations: 4 kB / 492.2 MB, free: 7.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.6669, allocations: 12.12 kB / 492.2 MB, free: 7.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004968/0.6674, allocations: 193.3 kB / 492.4 MB, free: 7.441 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]