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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002407/0.002407, allocations: 175.3 kB / 8.15 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.2 MB / 213.7 MB, free: 13.89 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.001237/0.001237, allocations: 85.7 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.748e-06/1.01e-05, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2481, allocations: 47.55 MB / 361.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.3625, allocations: 74.63 MB / 436.5 MB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.3628, allocations: 70.02 kB / 436.5 MB, free: 11.39 MB / 330.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: time 0.02498/0.3878, allocations: 5.325 MB / 441.8 MB, free: 6.117 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.3879, allocations: 0 / 441.8 MB, free: 6.117 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.0004766/0.3884, allocations: 411.1 kB / 442.2 MB, free: 5.668 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3884, allocations: 8.031 kB / 442.3 MB, free: 5.66 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.322e-05/0.3885, allocations: 7.906 kB / 442.3 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009331/0.3894, allocations: 367.5 kB / 442.6 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3895, allocations: 0.9375 kB / 442.6 MB, free: 5.254 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.3895, allocations: 4 kB / 442.6 MB, free: 5.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.029e-05/0.3896, allocations: 7.938 kB / 442.6 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.3897, allocations: 68.7 kB / 442.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.3897, allocations: 0 / 442.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.3897, allocations: 0 / 442.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.3898, allocations: 1.844 kB / 442.7 MB, free: 5.156 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004482/0.3902, allocations: 166.1 kB / 442.9 MB, free: 4.957 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.029e-05/0.3903, allocations: 22.52 kB / 442.9 MB, free: 4.926 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.273e-05/0.3903, allocations: 7.734 kB / 442.9 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.3903, allocations: 0 / 442.9 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.668e-05/0.3904, allocations: 65.06 kB / 443 MB, free: 4.84 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.513e-06/0.3904, allocations: 0 / 443 MB, free: 4.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.000164/0.3906, allocations: 37.61 kB / 443 MB, free: 4.797 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/0.3907, allocations: 161 kB / 443.2 MB, free: 4.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.3909, allocations: 153.3 kB / 443.3 MB, free: 4.445 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.391, allocations: 25.7 kB / 443.3 MB, free: 4.414 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.536e-05/0.391, allocations: 150.6 kB / 443.5 MB, free: 4.266 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.391, allocations: 7.891 kB / 443.5 MB, free: 4.258 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-06/0.3911, allocations: 4.656 kB / 443.5 MB, free: 4.254 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3912, allocations: 313.3 kB / 443.8 MB, free: 3.941 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.883e-05/0.3912, allocations: 4 kB / 443.8 MB, free: 3.938 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.082e-05/0.3913, allocations: 48.78 kB / 443.8 MB, free: 3.875 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.956e-05/0.3913, allocations: 4 kB / 443.9 MB, free: 3.871 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3913, allocations: 0 / 443.9 MB, free: 3.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001061/0.3915, allocations: 37.7 kB / 443.9 MB, free: 3.828 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.3915, allocations: 9.688 kB / 443.9 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3915, allocations: 0 / 443.9 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.3915, allocations: 7.922 kB / 443.9 MB, free: 3.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.709e-05/0.3916, allocations: 8.094 kB / 443.9 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.469e-06/0.3916, allocations: 0 / 443.9 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.3917, allocations: 4.406 kB / 443.9 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.3918, allocations: 0 / 443.9 MB, free: 3.801 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 6.744e-05/0.3918, allocations: 33.64 kB / 443.9 MB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.238e-05/0.3919, allocations: 7.906 kB / 444 MB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.164e-05/0.3919, allocations: 7.594 kB / 444 MB, free: 3.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.3919, allocations: 3.984 kB / 444 MB, free: 3.746 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.392, allocations: 4 kB / 444 MB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.392, allocations: 4 kB / 444 MB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002642/0.3922, allocations: 162.1 kB / 444.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3923, allocations: 0 / 444.1 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.694e-05/0.3923, allocations: 4 kB / 444.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3923, allocations: 0 / 444.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.3924, allocations: 0 / 444.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3924, allocations: 0.75 kB / 444.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3924, allocations: 48 / 444.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001662/0.3925, allocations: 84.92 kB / 444.2 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.3927, allocations: 93.11 kB / 444.3 MB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.081e-05/0.3927, allocations: 3.906 kB / 444.3 MB, free: 3.324 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001336/0.3929, allocations: 4 kB / 444.3 MB, free: 3.32 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.154e-05/0.3929, allocations: 0 / 444.3 MB, free: 3.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.3929, allocations: 0 / 444.3 MB, free: 3.32 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001565/0.3931, allocations: 141.5 kB / 444.5 MB, free: 3.184 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002866/0.3934, allocations: 31.92 kB / 444.5 MB, free: 3.152 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.0004042/0.3938, allocations: 151.2 kB / 444.6 MB, free: 3.012 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.3939, allocations: 12 kB / 444.6 MB, free: 3 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3939, allocations: 8.062 kB / 444.7 MB, free: 2.992 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.334e-05/0.394, allocations: 0 / 444.7 MB, free: 2.992 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001562/0.3941, allocations: 11.98 kB / 444.7 MB, free: 2.98 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003933/0.3945, allocations: 132.2 kB / 444.8 MB, free: 2.82 MB / 330.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]