Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_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.001819/0.001819, allocations: 179.3 kB / 8.476 MB, free: 1.855 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.288/1.288, allocations: 205.2 MB / 214.1 MB, free: 5.168 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000871/0.0008709, allocations: 93.91 kB / 262.1 MB, free: 5.199 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.07e-06/5.1e-06, allocations: 0 / 315 MB, free: 41.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07004/0.07006, allocations: 47.57 MB / 362.5 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2167/0.2868, allocations: 74.64 MB / 437.2 MB, free: 10.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000164/0.2871, allocations: 67.8 kB / 437.2 MB, free: 10.7 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: time 0.01366/0.3007, allocations: 5.314 MB / 442.5 MB, free: 10.44 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.3008, allocations: 3.938 kB / 442.5 MB, free: 10.44 MB / 314.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.0003205/0.3011, allocations: 409.8 kB / 442.9 MB, free: 10.03 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3011, allocations: 7.891 kB / 442.9 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.815e-05/0.3012, allocations: 11.72 kB / 443 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005236/0.3017, allocations: 371.5 kB / 443.3 MB, free: 9.812 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.59e-06/0.3017, allocations: 7.844 kB / 443.3 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.3017, allocations: 0 / 443.3 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.732e-05/0.3018, allocations: 0.75 kB / 443.3 MB, free: 9.809 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.179e-05/0.3019, allocations: 72.12 kB / 443.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.3019, allocations: 0 / 443.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.3019, allocations: 0 / 443.4 MB, free: 9.734 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3019, allocations: 7.844 kB / 443.4 MB, free: 9.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002789/0.3022, allocations: 168 kB / 443.6 MB, free: 9.566 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.082e-05/0.3022, allocations: 15.23 kB / 443.6 MB, free: 9.543 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.549e-05/0.3023, allocations: 9.375 kB / 443.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/0.3023, allocations: 0 / 443.6 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.3023, allocations: 64.2 kB / 443.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.803e-06/0.3023, allocations: 0 / 443.7 MB, free: 9.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001121/0.3024, allocations: 46.83 kB / 443.7 MB, free: 9.422 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.472e-05/0.3025, allocations: 154.8 kB / 443.9 MB, free: 9.234 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.3026, allocations: 153.6 kB / 444 MB, free: 9.141 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.3026, allocations: 25.7 kB / 444 MB, free: 9.109 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.044e-05/0.3026, allocations: 90.06 kB / 444.1 MB, free: 9.027 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.68e-05/0.3027, allocations: 3.906 kB / 444.1 MB, free: 9.023 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.3027, allocations: 0 / 444.1 MB, free: 9.023 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.535e-05/0.3027, allocations: 322.5 kB / 444.4 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.768e-06/0.3027, allocations: 7.781 kB / 444.4 MB, free: 8.707 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.928e-05/0.3028, allocations: 37.97 kB / 444.5 MB, free: 8.668 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.602e-05/0.3028, allocations: 8.938 kB / 444.5 MB, free: 8.664 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3028, allocations: 0 / 444.5 MB, free: 8.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.935e-05/0.3029, allocations: 47.22 kB / 444.5 MB, free: 8.629 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.749e-06/0.3029, allocations: 7.844 kB / 444.5 MB, free: 8.625 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3029, allocations: 4.453 kB / 444.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.3029, allocations: 0 / 444.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.656e-05/0.3029, allocations: 4.688 kB / 444.6 MB, free: 8.621 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.478e-06/0.3029, allocations: 3.984 kB / 444.6 MB, free: 8.617 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.867e-05/0.303, allocations: 8.281 kB / 444.6 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.303, allocations: 0.6562 kB / 444.6 MB, free: 8.613 MB / 314.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.854e-05/0.3031, allocations: 108.7 kB / 444.7 MB, free: 8.508 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.3031, allocations: 8.672 kB / 444.7 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.523e-05/0.3032, allocations: 11.84 kB / 444.7 MB, free: 8.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3032, allocations: 4.688 kB / 444.7 MB, free: 8.496 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3032, allocations: 4 kB / 444.7 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.3032, allocations: 0 / 444.7 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001336/0.3033, allocations: 160.9 kB / 444.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3033, allocations: 0.6562 kB / 444.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.486e-05/0.3034, allocations: 3.75 kB / 444.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.3034, allocations: 0.5156 kB / 444.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3034, allocations: 0 / 444.9 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.3034, allocations: 4.547 kB / 444.9 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3034, allocations: 4 kB / 444.9 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001012/0.3035, allocations: 71.58 kB / 444.9 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.639e-05/0.3036, allocations: 99.16 kB / 445 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.675e-05/0.3036, allocations: 4.25 kB / 445 MB, free: 8.156 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.104e-05/0.3037, allocations: 4.594 kB / 445 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.317e-06/0.3037, allocations: 8.344 kB / 445.1 MB, free: 8.148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.984e-06/0.3037, allocations: 0 / 445.1 MB, free: 8.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.023e-05/0.3038, allocations: 133 kB / 445.2 MB, free: 8.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002158/0.304, allocations: 24.02 kB / 445.2 MB, free: 8.066 MB / 314.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.0002763/0.3043, allocations: 168.9 kB / 445.4 MB, free: 7.938 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.671e-05/0.3043, allocations: 12.3 kB / 445.4 MB, free: 7.934 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3044, allocations: 0.5625 kB / 445.4 MB, free: 7.934 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.322e-06/0.3044, allocations: 3.812 kB / 445.4 MB, free: 7.934 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001073/0.3045, allocations: 8.328 kB / 445.4 MB, free: 7.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002257/0.3047, allocations: 98.62 kB / 445.5 MB, free: 7.852 MB / 314.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]