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: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 181.8 kB / 8.134 MB, free: 2.207 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.256/1.256, allocations: 221.4 MB / 229.9 MB, free: 3.07 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.0009235/0.0009235, allocations: 102.3 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.782e-06/6.823e-06, allocations: 4 kB / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2019, allocations: 50.39 MB / 386.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08285/0.2848, allocations: 75.54 MB / 462.4 MB, free: 11.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001718/0.285, allocations: 67.91 kB / 462.5 MB, free: 11.2 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: Performance of FrontEnd: time 0.01514/0.3002, allocations: 5.22 MB / 467.7 MB, free: 6.012 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.191e-06/0.3002, allocations: 0 / 467.7 MB, free: 6.012 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.0003418/0.3005, allocations: 415.7 kB / 468.1 MB, free: 5.559 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.3006, allocations: 12.03 kB / 468.1 MB, free: 5.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.3006, allocations: 7.906 kB / 468.2 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.3009, allocations: 230.8 kB / 468.4 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.301, allocations: 4 kB / 468.4 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.301, allocations: 3.938 kB / 468.4 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.699e-05/0.301, allocations: 0 / 468.4 MB, free: 5.266 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001156/0.3011, allocations: 73.98 kB / 468.5 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3011, allocations: 0 / 468.5 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.3012, allocations: 3.938 kB / 468.5 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3012, allocations: 0 / 468.5 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002936/0.3015, allocations: 162.1 kB / 468.6 MB, free: 4.973 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.144e-05/0.3015, allocations: 18.58 kB / 468.6 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.874e-05/0.3015, allocations: 8.922 kB / 468.6 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.037e-05/0.3016, allocations: 4 kB / 468.6 MB, free: 4.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.3016, allocations: 60.27 kB / 468.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3016, allocations: 0 / 468.7 MB, free: 4.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001273/0.3017, allocations: 41.59 kB / 468.7 MB, free: 4.809 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.12e-05/0.3018, allocations: 158.2 kB / 468.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.302, allocations: 153.2 kB / 469.1 MB, free: 4.457 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.302, allocations: 29.64 kB / 469.1 MB, free: 4.422 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.854e-05/0.3021, allocations: 92.12 kB / 469.2 MB, free: 4.328 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.3021, allocations: 11.88 kB / 469.2 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.3021, allocations: 0 / 469.2 MB, free: 4.316 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3022, allocations: 318.8 kB / 469.5 MB, free: 3.996 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.3022, allocations: 4 kB / 469.5 MB, free: 3.992 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.855e-05/0.3023, allocations: 40.28 kB / 469.5 MB, free: 3.938 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.787e-05/0.3023, allocations: 8.062 kB / 469.5 MB, free: 3.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3023, allocations: 0 / 469.5 MB, free: 3.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.549e-05/0.3024, allocations: 45.59 kB / 469.6 MB, free: 3.879 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.918e-06/0.3024, allocations: 7.938 kB / 469.6 MB, free: 3.871 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.237e-06/0.3024, allocations: 4 kB / 469.6 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.205e-06/0.3024, allocations: 0 / 469.6 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.497e-05/0.3024, allocations: 0 / 469.6 MB, free: 3.867 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.3025, allocations: 8 kB / 469.6 MB, free: 3.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.978e-05/0.3025, allocations: 7.906 kB / 469.6 MB, free: 3.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.3026, allocations: 3.984 kB / 469.6 MB, free: 3.848 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.959e-05/0.3026, allocations: 109 kB / 469.7 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.3027, allocations: 7.906 kB / 469.7 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.478e-05/0.3027, allocations: 7.594 kB / 469.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.3027, allocations: 0 / 469.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3027, allocations: 0 / 469.7 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.3027, allocations: 4 kB / 469.7 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001918/0.3029, allocations: 154.1 kB / 469.9 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3029, allocations: 0 / 469.9 MB, free: 3.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.046e-05/0.3029, allocations: 8 kB / 469.9 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.303, allocations: 4 kB / 469.9 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.303, allocations: 3.938 kB / 469.9 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.303, allocations: 0 / 469.9 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.303, allocations: 0 / 469.9 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001009/0.3031, allocations: 76.91 kB / 470 MB, free: 3.422 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.183e-05/0.3032, allocations: 101 kB / 470.1 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.3032, allocations: 0 / 470.1 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.39e-05/0.3033, allocations: 8.094 kB / 470.1 MB, free: 3.297 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.047e-05/0.3033, allocations: 3.906 kB / 470.1 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.557e-06/0.3033, allocations: 4 kB / 470.1 MB, free: 3.289 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.205e-05/0.3034, allocations: 130.3 kB / 470.2 MB, free: 3.164 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002099/0.3037, allocations: 20 kB / 470.2 MB, free: 3.145 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.0003104/0.304, allocations: 172.3 kB / 470.4 MB, free: 3 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.485e-05/0.304, allocations: 12 kB / 470.4 MB, free: 2.988 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3041, allocations: 0 / 470.4 MB, free: 2.988 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.296e-06/0.3041, allocations: 4 kB / 470.4 MB, free: 2.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001012/0.3042, allocations: 4.125 kB / 470.4 MB, free: 2.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002598/0.3044, allocations: 108 kB / 470.5 MB, free: 2.848 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]