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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001399/0.0014, allocations: 176.4 kB / 8.348 MB, free: 0.7266 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.326/1.326, allocations: 221.5 MB / 230.3 MB, free: 7.594 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.0008867/0.0008867, allocations: 99.27 kB / 281.2 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.733e-05/1.722e-05, allocations: 4 kB / 337 MB, free: 10.06 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09785/0.09788, allocations: 50.42 MB / 387.4 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2985/0.3965, allocations: 75.57 MB / 463 MB, free: 3.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001886/0.3967, allocations: 63.97 kB / 463.1 MB, free: 3.262 MB / 330.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 - DAE generated: time 0.009241/0.4059, allocations: 3.28 MB / 466.4 MB, free: 15.99 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.406, allocations: 0 / 466.4 MB, free: 15.99 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.406, allocations: 8 kB / 466.4 MB, free: 15.98 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.0003027/0.4063, allocations: 376.6 kB / 466.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.4063, allocations: 8.031 kB / 466.7 MB, free: 15.56 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.4064, allocations: 11.86 kB / 466.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003034/0.4067, allocations: 219 kB / 467 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.787e-06/0.4067, allocations: 0 / 467 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.4067, allocations: 3.984 kB / 467 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.075e-05/0.4068, allocations: 4 kB / 467 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.4069, allocations: 77.91 kB / 467 MB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.4069, allocations: 3.953 kB / 467.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.4069, allocations: 0 / 467.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.4069, allocations: 0 / 467.1 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002846/0.4072, allocations: 166.1 kB / 467.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.2e-05/0.4073, allocations: 14.58 kB / 467.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.497e-05/0.4073, allocations: 16.86 kB / 467.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.4073, allocations: 0 / 467.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.4074, allocations: 64.2 kB / 467.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.4074, allocations: 4 kB / 467.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001216/0.4075, allocations: 37.69 kB / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.82e-05/0.4076, allocations: 154.2 kB / 467.5 MB, free: 14.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.4077, allocations: 155.1 kB / 467.6 MB, free: 14.47 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.4077, allocations: 29.73 kB / 467.7 MB, free: 14.43 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.258e-05/0.4078, allocations: 92.89 kB / 467.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.116e-05/0.4078, allocations: 11.84 kB / 467.8 MB, free: 14.33 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.733e-06/0.4078, allocations: 0 / 467.8 MB, free: 14.33 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4079, allocations: 318.8 kB / 468.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.272e-05/0.408, allocations: 4 kB / 468.1 MB, free: 14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.064e-05/0.408, allocations: 44.28 kB / 468.1 MB, free: 13.95 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.181e-05/0.408, allocations: 8.594 kB / 468.1 MB, free: 13.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.408, allocations: 0 / 468.1 MB, free: 13.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.954e-05/0.4081, allocations: 53.53 kB / 468.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.4082, allocations: 4 kB / 468.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.4082, allocations: 0 / 468.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.4082, allocations: 0 / 468.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.042e-05/0.4082, allocations: 4 kB / 468.2 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.4082, allocations: 0 / 468.2 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.055e-05/0.4083, allocations: 16.05 kB / 468.2 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.021e-06/0.4083, allocations: 0 / 468.2 MB, free: 13.86 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 7.176e-05/0.4084, allocations: 105 kB / 468.3 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.063e-05/0.4084, allocations: 11.89 kB / 468.3 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.4085, allocations: 7.969 kB / 468.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.4085, allocations: 0 / 468.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.4085, allocations: 0 / 468.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.4085, allocations: 0 / 468.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.4087, allocations: 162.1 kB / 468.5 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.4087, allocations: 7.984 kB / 468.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.888e-05/0.4087, allocations: 4 kB / 468.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.4087, allocations: 3.938 kB / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.4087, allocations: 0 / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.4087, allocations: 4 kB / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4087, allocations: 0.7812 kB / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000112/0.4089, allocations: 68.98 kB / 468.6 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.12e-05/0.4089, allocations: 101.1 kB / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.409, allocations: 4 kB / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.921e-05/0.4091, allocations: 3.984 kB / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.17e-05/0.4091, allocations: 4 kB / 468.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.4091, allocations: 0 / 468.7 MB, free: 13.29 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.919e-05/0.4092, allocations: 124 kB / 468.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4092, allocations: 4 kB / 468.8 MB, free: 13.17 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002106/0.4094, allocations: 23.98 kB / 468.9 MB, free: 13.14 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.0003698/0.4098, allocations: 178.5 kB / 469 MB, free: 12.99 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.656e-05/0.4099, allocations: 19.92 kB / 469 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4099, allocations: 0 / 469 MB, free: 12.97 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.875e-06/0.4099, allocations: 4 kB / 469 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001087/0.41, allocations: 5.516 kB / 469.1 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002458/0.4103, allocations: 109.8 kB / 469.2 MB, free: 12.83 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]