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") [: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 trunk/package.mo): time 0.001046/0.001046, allocations: 202.8 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 225.5 MB / 234.4 MB, free: 3.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009743/0.0009743, allocations: 92.92 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.753e-06/6.873e-06, allocations: 0 / 343.1 MB, free: 8.801 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1261, allocations: 51.47 MB / 394.6 MB, free: 5.281 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3482/0.4744, allocations: 76.36 MB / 471 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001686/0.4746, allocations: 62.97 kB / 471 MB, free: 15.09 MB / 346.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: time 0.01352/0.4882, allocations: 5.289 MB / 476.3 MB, free: 12.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.4882, allocations: 0 / 476.3 MB, free: 12.44 MB / 346.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.0003424/0.4886, allocations: 407.4 kB / 476.7 MB, free: 12.01 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.4886, allocations: 8.031 kB / 476.7 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.4886, allocations: 9.5 kB / 476.7 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002804/0.4889, allocations: 221.4 kB / 476.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.489, allocations: 3.188 kB / 476.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.489, allocations: 4 kB / 476.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.795e-05/0.489, allocations: 0 / 476.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.522e-05/0.4891, allocations: 76.36 kB / 477 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.4891, allocations: 0 / 477 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.4891, allocations: 3.984 kB / 477 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.4891, allocations: 0 / 477 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002599/0.4894, allocations: 165.3 kB / 477.2 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.846e-05/0.4894, allocations: 26.52 kB / 477.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.635e-05/0.4895, allocations: 8.859 kB / 477.2 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.252e-06/0.4895, allocations: 4 kB / 477.2 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.4895, allocations: 60.89 kB / 477.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.4895, allocations: 0 / 477.3 MB, free: 11.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001174/0.4896, allocations: 40.84 kB / 477.3 MB, free: 11.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.4897, allocations: 162.2 kB / 477.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.4898, allocations: 153.3 kB / 477.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.149e-05/0.4898, allocations: 25.7 kB / 477.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.167e-05/0.4899, allocations: 87.39 kB / 477.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.501e-05/0.4899, allocations: 3.906 kB / 477.7 MB, free: 10.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.394e-06/0.4899, allocations: 0 / 477.7 MB, free: 10.87 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.45e-05/0.4899, allocations: 321.5 kB / 478.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.001e-05/0.4899, allocations: 0 / 478.1 MB, free: 10.55 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.151e-05/0.49, allocations: 50.86 kB / 478.1 MB, free: 10.5 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.62e-05/0.49, allocations: 7.281 kB / 478.1 MB, free: 10.49 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.49, allocations: 0 / 478.1 MB, free: 10.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6e-05/0.4901, allocations: 45.48 kB / 478.2 MB, free: 10.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.4901, allocations: 4 kB / 478.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.4901, allocations: 0 / 478.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.4901, allocations: 4 kB / 478.2 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.768e-05/0.4902, allocations: 7.516 kB / 478.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.368e-06/0.4902, allocations: 0 / 478.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.444e-05/0.4902, allocations: 7.906 kB / 478.2 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.97e-06/0.4903, allocations: 5.969 kB / 478.2 MB, free: 10.42 MB / 346.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 4.791e-05/0.4903, allocations: 104.9 kB / 478.3 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.4903, allocations: 9.344 kB / 478.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.4904, allocations: 10.88 kB / 478.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.4904, allocations: 0 / 478.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.4904, allocations: 0 / 478.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.4904, allocations: 4 kB / 478.3 MB, free: 10.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.4905, allocations: 162.4 kB / 478.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.4905, allocations: 0 / 478.5 MB, free: 10.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.644e-05/0.4906, allocations: 4 kB / 478.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.4906, allocations: 0 / 478.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.372e-06/0.4906, allocations: 0 / 478.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.31e-07/0.4906, allocations: 0 / 478.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4906, allocations: 1.312 kB / 478.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.951e-05/0.4907, allocations: 75.58 kB / 478.6 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.19e-05/0.4908, allocations: 98.94 kB / 478.7 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.4908, allocations: 0 / 478.7 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.311e-05/0.4909, allocations: 7.281 kB / 478.7 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.531e-05/0.4909, allocations: 3.906 kB / 478.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-06/0.4909, allocations: 0 / 478.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.284e-05/0.491, allocations: 133.2 kB / 478.8 MB, free: 9.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002377/0.4912, allocations: 25.5 kB / 478.8 MB, free: 9.785 MB / 346.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.0003062/0.4915, allocations: 171.5 kB / 479 MB, free: 9.648 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.234e-05/0.4916, allocations: 8 kB / 479 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4916, allocations: 4 kB / 479 MB, free: 9.637 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.871e-06/0.4916, allocations: 0 / 479 MB, free: 9.637 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001063/0.4917, allocations: 12.58 kB / 479 MB, free: 9.633 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002361/0.492, allocations: 95.64 kB / 479.1 MB, free: 9.527 MB / 346.7 MB [/var/lib/jenkins/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]