Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009674/0.0009674, allocations: 183.9 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.087/1.087, allocations: 221.4 MB / 229.9 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008554/0.0008554, allocations: 100.6 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09719/0.09807, allocations: 55.81 MB / 336.6 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2995, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07727/0.3768, allocations: 75.53 MB / 462.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.3771, allocations: 67.91 kB / 462.6 MB, free: 11.26 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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 4.0.0+maint.om/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.01437/0.3915, allocations: 5.63 MB / 468.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.3915, allocations: 12 kB / 468.2 MB, free: 5.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.158e-05/0.3915, allocations: 8.969 kB / 468.2 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.3918, allocations: 226.9 kB / 468.5 MB, free: 5.348 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.103e-06/0.3919, allocations: 0 / 468.5 MB, free: 5.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.602e-05/0.3919, allocations: 3.984 kB / 468.5 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.341e-05/0.3919, allocations: 8 kB / 468.5 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.377e-05/0.392, allocations: 66.58 kB / 468.5 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-06/0.392, allocations: 0 / 468.5 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.392, allocations: 4 kB / 468.6 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-06/0.392, allocations: 0 / 468.6 MB, free: 5.246 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002577/0.3923, allocations: 170.1 kB / 468.7 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.543e-05/0.3923, allocations: 14.58 kB / 468.7 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.615e-05/0.3924, allocations: 9.734 kB / 468.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.42e-06/0.3924, allocations: 1.219 kB / 468.7 MB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.3924, allocations: 56.27 kB / 468.8 MB, free: 4.938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.3924, allocations: 0 / 468.8 MB, free: 4.938 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001062/0.3925, allocations: 53.53 kB / 468.9 MB, free: 4.879 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.3926, allocations: 158.2 kB / 469 MB, free: 4.688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.3927, allocations: 149.3 kB / 469.2 MB, free: 4.531 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.3928, allocations: 29.7 kB / 469.2 MB, free: 4.496 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.3928, allocations: 84.14 kB / 469.3 MB, free: 4.41 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.795e-05/0.3928, allocations: 19.77 kB / 469.3 MB, free: 4.391 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.004e-06/0.3928, allocations: 0 / 469.3 MB, free: 4.391 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.838e-05/0.3929, allocations: 314.8 kB / 469.6 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.095e-05/0.3929, allocations: 4 kB / 469.6 MB, free: 4.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.534e-05/0.393, allocations: 40.28 kB / 469.6 MB, free: 4.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.971e-05/0.393, allocations: 9.312 kB / 469.6 MB, free: 4.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.393, allocations: 0 / 469.6 MB, free: 4.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.789e-05/0.3931, allocations: 49.53 kB / 469.7 MB, free: 3.953 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.358e-06/0.3931, allocations: 8 kB / 469.7 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.3931, allocations: 0 / 469.7 MB, free: 3.945 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.3931, allocations: 4.094 kB / 469.7 MB, free: 3.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.7e-05/0.3931, allocations: 4 kB / 469.7 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.877e-06/0.3932, allocations: 0 / 469.7 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.901e-05/0.3932, allocations: 11.91 kB / 469.7 MB, free: 3.926 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-06/0.3933, allocations: 0 / 469.7 MB, free: 3.926 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 6.272e-05/0.3933, allocations: 108.1 kB / 469.8 MB, free: 3.816 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.994e-05/0.3933, allocations: 11.89 kB / 469.8 MB, free: 3.805 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.34e-05/0.3934, allocations: 7.594 kB / 469.8 MB, free: 3.801 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3934, allocations: 4 kB / 469.8 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3934, allocations: 4.844 kB / 469.8 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.3934, allocations: 48 / 469.8 MB, free: 3.793 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.3936, allocations: 162.1 kB / 470 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3936, allocations: 0 / 470 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.483e-05/0.3936, allocations: 0 / 470 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.3936, allocations: 0 / 470 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.64e-06/0.3936, allocations: 0 / 470 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3936, allocations: 4 kB / 470 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3936, allocations: 0 / 470 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.785e-05/0.3937, allocations: 77.81 kB / 470.1 MB, free: 3.5 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001769/0.3939, allocations: 461.4 kB / 470.5 MB, free: 3.027 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.582e-05/0.394, allocations: 105 kB / 470.6 MB, free: 2.906 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.394, allocations: 4 kB / 470.6 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.265e-05/0.3941, allocations: 4.188 kB / 470.6 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-06/0.3941, allocations: 4 kB / 470.7 MB, free: 2.895 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-06/0.3941, allocations: 0 / 470.7 MB, free: 2.895 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.931e-05/0.3942, allocations: 131.2 kB / 470.8 MB, free: 2.766 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007362/0.395, allocations: 23.94 kB / 470.8 MB, free: 2.742 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.0002639/0.3952, allocations: 174.6 kB / 471 MB, free: 2.594 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.283e-05/0.3953, allocations: 8 kB / 471 MB, free: 2.586 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3953, allocations: 0 / 471 MB, free: 2.586 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.152e-05/0.3953, allocations: 8 kB / 471 MB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.149e-05/0.3954, allocations: 12.03 kB / 471 MB, free: 2.566 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002213/0.3957, allocations: 111.9 kB / 471.1 MB, free: 2.43 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