Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00164/0.00164, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.434e-05/3.444e-05, allocations: 0 / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1389, allocations: 47.57 MB / 369.1 MB, free: 2.215 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5193/0.6583, allocations: 75.32 MB / 444.4 MB, free: 1.809 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003605/0.6587, allocations: 66.09 kB / 444.5 MB, free: 1.773 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.0266/0.6853, allocations: 3.72 MB / 448.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.6854, allocations: 0 / 448.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.6855, allocations: 0 / 448.2 MB, free: 14.84 MB / 330.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.0005445/0.686, allocations: 383.7 kB / 448.6 MB, free: 14.42 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.294e-05/0.6861, allocations: 12.03 kB / 448.6 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.731e-05/0.6862, allocations: 7.906 kB / 448.6 MB, free: 14.4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001468/0.6877, allocations: 364 kB / 448.9 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.6878, allocations: 7.938 kB / 448.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.6878, allocations: 0.8125 kB / 448.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002377/0.6881, allocations: 77.11 kB / 449 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.6881, allocations: 0 / 449 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.034e-05/0.6882, allocations: 4 kB / 449 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.643e-06/0.6882, allocations: 0 / 449 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.885e-05/0.6883, allocations: 0 / 449 MB, free: 13.92 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006022/0.6889, allocations: 188.9 kB / 449.2 MB, free: 13.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.301e-05/0.689, allocations: 18.58 kB / 449.2 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.134e-05/0.6891, allocations: 12.88 kB / 449.2 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.6891, allocations: 4 kB / 449.2 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.655e-05/0.6892, allocations: 64.2 kB / 449.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 3.256e-06/0.6892, allocations: 0 / 449.3 MB, free: 13.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002212/0.6894, allocations: 41.64 kB / 449.3 MB, free: 13.53 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.6896, allocations: 158.2 kB / 449.5 MB, free: 13.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000362/0.69, allocations: 156.3 kB / 449.6 MB, free: 13.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.132e-05/0.69, allocations: 28.7 kB / 449.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.6902, allocations: 157.9 kB / 449.8 MB, free: 13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.6902, allocations: 11.16 kB / 449.8 MB, free: 13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.99e-06/0.6903, allocations: 0 / 449.8 MB, free: 13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.6904, allocations: 314.8 kB / 450.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.46e-05/0.6905, allocations: 7.938 kB / 450.2 MB, free: 12.67 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.6907, allocations: 47.72 kB / 450.2 MB, free: 12.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.459e-05/0.6907, allocations: 8.062 kB / 450.2 MB, free: 12.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.6908, allocations: 0 / 450.2 MB, free: 12.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001821/0.691, allocations: 45.02 kB / 450.2 MB, free: 12.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.691, allocations: 8 kB / 450.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.691, allocations: 0 / 450.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.6911, allocations: 0 / 450.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.173e-05/0.6912, allocations: 4 kB / 450.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.6912, allocations: 0 / 450.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002116/0.6914, allocations: 4 kB / 450.3 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.6915, allocations: 0 / 450.3 MB, free: 12.54 MB / 330.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 () * 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.0001496/0.6916, allocations: 113 kB / 450.4 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.232e-05/0.6917, allocations: 15.84 kB / 450.4 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.946e-05/0.6918, allocations: 14.86 kB / 450.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.6918, allocations: 0 / 450.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.6919, allocations: 0 / 450.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.6919, allocations: 0 / 450.4 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004651/0.6924, allocations: 180.6 kB / 450.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.6924, allocations: 0 / 450.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.627e-05/0.6925, allocations: 0 / 450.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.6925, allocations: 11.95 kB / 450.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.6925, allocations: 0 / 450.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.6926, allocations: 0 / 450.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.6926, allocations: 0.7031 kB / 450.6 MB, free: 12.16 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002993/0.6929, allocations: 72.34 kB / 450.7 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.6931, allocations: 100.3 kB / 450.8 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.6932, allocations: 3.953 kB / 450.8 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.6934, allocations: 8.094 kB / 450.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.06e-05/0.6935, allocations: 3.938 kB / 450.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.6935, allocations: 3.938 kB / 450.8 MB, free: 11.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002676/0.6938, allocations: 134.9 kB / 450.9 MB, free: 11.83 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.6938, allocations: 0 / 450.9 MB, free: 11.83 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005159/0.6943, allocations: 20 kB / 450.9 MB, free: 11.81 MB / 330.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 () * 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.0006683/0.695, allocations: 184.6 kB / 451.1 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.6952, allocations: 8 kB / 451.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6952, allocations: 0 / 451.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.209e-05/0.6953, allocations: 4 kB / 451.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.6955, allocations: 15.38 kB / 451.1 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005026/0.696, allocations: 140.4 kB / 451.3 MB, free: 11.45 MB / 330.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:744:5-744:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]