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: "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) [: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.001167/0.001167, allocations: 199.2 kB / 8.537 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008875/0.0008877, allocations: 95.86 kB / 286.3 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1026/0.1035, allocations: 56.89 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.1934, allocations: 51.46 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2408/0.4343, allocations: 76.36 MB / 471 MB, free: 14.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001589/0.4345, allocations: 65.67 kB / 471.1 MB, free: 14.76 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: 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.01408/0.4485, allocations: 5.698 MB / 476.8 MB, free: 11.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.4486, allocations: 8 kB / 476.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.148e-05/0.4487, allocations: 7.906 kB / 476.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.4489, allocations: 226.3 kB / 477 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.085e-06/0.4489, allocations: 4 kB / 477.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.555e-05/0.449, allocations: 3 kB / 477.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.529e-05/0.449, allocations: 0 / 477.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.598e-05/0.4491, allocations: 73.36 kB / 477.1 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.4491, allocations: 0 / 477.1 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.343e-05/0.4491, allocations: 0 / 477.1 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.4491, allocations: 0 / 477.1 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002424/0.4494, allocations: 166 kB / 477.3 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.757e-05/0.4494, allocations: 22.58 kB / 477.3 MB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.573e-05/0.4494, allocations: 12.42 kB / 477.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.4494, allocations: 3.938 kB / 477.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.085e-05/0.4495, allocations: 59.27 kB / 477.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.353e-06/0.4495, allocations: 0 / 477.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001084/0.4496, allocations: 42.67 kB / 477.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.4496, allocations: 161.2 kB / 477.6 MB, free: 10.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.4498, allocations: 151.2 kB / 477.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.4498, allocations: 29.7 kB / 477.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.524e-05/0.4498, allocations: 89.64 kB / 477.8 MB, free: 10.54 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.4498, allocations: 4.984 kB / 477.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-06/0.4498, allocations: 0 / 477.9 MB, free: 10.53 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.24e-05/0.4499, allocations: 320.3 kB / 478.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.132e-05/0.4499, allocations: 7.5 kB / 478.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.29e-05/0.45, allocations: 39.58 kB / 478.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.831e-05/0.45, allocations: 7 kB / 478.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.45, allocations: 0 / 478.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.083e-05/0.4501, allocations: 50.36 kB / 478.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4501, allocations: 4 kB / 478.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.4501, allocations: 4 kB / 478.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.4501, allocations: 3.375 kB / 478.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.912e-05/0.4501, allocations: 0 / 478.3 MB, free: 10.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.4502, allocations: 4.094 kB / 478.3 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.979e-05/0.4502, allocations: 11.91 kB / 478.3 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-06/0.4503, allocations: 0 / 478.3 MB, free: 10.08 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 5.19e-05/0.4503, allocations: 101 kB / 478.4 MB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.4503, allocations: 7.906 kB / 478.4 MB, free: 9.969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.274e-05/0.4504, allocations: 16.06 kB / 478.4 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.4504, allocations: 4.031 kB / 478.4 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.4504, allocations: 0 / 478.4 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.4504, allocations: 4 kB / 478.4 MB, free: 9.957 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.4506, allocations: 154.8 kB / 478.6 MB, free: 9.781 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4506, allocations: 3.938 kB / 478.6 MB, free: 9.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.808e-05/0.4506, allocations: 5.594 kB / 478.6 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.4506, allocations: 0 / 478.6 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.4506, allocations: 0 / 478.6 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.4506, allocations: 0 / 478.6 MB, free: 9.773 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4506, allocations: 3.938 kB / 478.6 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.435e-05/0.4507, allocations: 78.22 kB / 478.7 MB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001126/0.4508, allocations: 464.7 kB / 479.1 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.393e-05/0.4509, allocations: 95.84 kB / 479.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.797e-05/0.4509, allocations: 1.688 kB / 479.2 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.5e-05/0.451, allocations: 4 kB / 479.2 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.057e-05/0.451, allocations: 0 / 479.2 MB, free: 9.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.451, allocations: 96 / 479.2 MB, free: 9.113 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.544e-05/0.4511, allocations: 142.3 kB / 479.4 MB, free: 9 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007846/0.4519, allocations: 27.09 kB / 479.4 MB, free: 8.977 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.0003325/0.4523, allocations: 155.6 kB / 479.5 MB, free: 8.855 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.248e-05/0.4523, allocations: 15.05 kB / 479.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4524, allocations: 0 / 479.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.502e-06/0.4524, allocations: 0 / 479.5 MB, free: 8.848 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001097/0.4525, allocations: 11.03 kB / 479.6 MB, free: 8.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002408/0.4527, allocations: 107 kB / 479.7 MB, free: 8.727 MB / 346.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] Error: Internal error SimCode: The model Modelica.Utilities.Examples.ReadRealMatrixFromFile could not be translated to FMU