Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadModel(Modelica): time 2.124/2.124, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.0004791, allocations: 12 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1012, allocations: 44.51 MB / 309 MB, free: 388 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4832/0.5845, allocations: 70.99 MB / 380 MB, free: 15.35 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003385/0.5849, allocations: 68.77 kB / 380.1 MB, free: 15.35 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.01822/0.6031, allocations: 3.882 MB / 384 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6032, allocations: 4 kB / 384 MB, free: 14.89 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.6032, allocations: 1.375 kB / 384 MB, free: 14.89 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.0004813/0.6037, allocations: 378.8 kB / 384.4 MB, free: 14.52 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.6037, allocations: 13.56 kB / 384.4 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.092e-05/0.6038, allocations: 8.031 kB / 384.4 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008694/0.6047, allocations: 375.7 kB / 384.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.6047, allocations: 1.375 kB / 384.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.6048, allocations: 0 / 384.8 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001636/0.6049, allocations: 79.8 kB / 384.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.605, allocations: 7.875 kB / 384.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.605, allocations: 3.016 kB / 384.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.605, allocations: 0 / 384.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.363e-05/0.605, allocations: 2.75 kB / 384.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004081/0.6055, allocations: 194.2 kB / 385 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.443e-05/0.6055, allocations: 17.7 kB / 385 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.6055, allocations: 0 / 385 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.6056, allocations: 37.81 kB / 385.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.864e-06/0.6056, allocations: 0 / 385.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001728/0.6058, allocations: 46.09 kB / 385.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.6058, allocations: 131.5 kB / 385.3 MB, free: 13.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002491/0.6061, allocations: 174.7 kB / 385.4 MB, free: 13.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.6061, allocations: 30.42 kB / 385.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.019e-05/0.6062, allocations: 92.95 kB / 385.6 MB, free: 13.53 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.278e-05/0.6062, allocations: 1.438 kB / 385.6 MB, free: 13.53 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-06/0.6062, allocations: 0 / 385.6 MB, free: 13.53 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.6063, allocations: 324.4 kB / 385.9 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.812e-05/0.6063, allocations: 2.344 kB / 385.9 MB, free: 13.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.929e-05/0.6064, allocations: 52.89 kB / 385.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.063e-05/0.6065, allocations: 8.688 kB / 385.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.6065, allocations: 1.312 kB / 385.9 MB, free: 13.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001062/0.6066, allocations: 48.67 kB / 386 MB, free: 13.12 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.6066, allocations: 3.906 kB / 386 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.6067, allocations: 0.9375 kB / 386 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.6067, allocations: 0 / 386 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.62e-05/0.6067, allocations: 6.844 kB / 386 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.6068, allocations: 5.344 kB / 386 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.6069, allocations: 13.95 kB / 386 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.6069, allocations: 1.656 kB / 386 MB, free: 13.11 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 () * Number of clocked 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 0.0001039/0.607, allocations: 126.5 kB / 386.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.561e-05/0.6071, allocations: 7.594 kB / 386.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.127e-05/0.6071, allocations: 6.969 kB / 386.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.6071, allocations: 0 / 386.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.6071, allocations: 4.203 kB / 386.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.6072, allocations: 4 kB / 386.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.6074, allocations: 175.4 kB / 386.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.6074, allocations: 0 / 386.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/0.6075, allocations: 2.031 kB / 386.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.6075, allocations: 1 kB / 386.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.6075, allocations: 2.625 kB / 386.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.6075, allocations: 0.9688 kB / 386.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.6075, allocations: 0 / 386.3 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001523/0.6077, allocations: 82.02 kB / 386.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.144e-05/0.6078, allocations: 92 kB / 386.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.219e-05/0.6078, allocations: 1.375 kB / 386.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.854e-05/0.6079, allocations: 6.438 kB / 386.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.012e-05/0.608, allocations: 3.875 kB / 386.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.608, allocations: 1.125 kB / 386.5 MB, free: 12.62 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001517/0.6081, allocations: 135 kB / 386.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.6081, allocations: 0 / 386.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003144/0.6085, allocations: 23.88 kB / 386.7 MB, free: 12.54 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 () * Number of clocked 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.0004628/0.6089, allocations: 194.5 kB / 386.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001126/0.6091, allocations: 11.91 kB / 386.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.6091, allocations: 0 / 386.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.689e-05/0.6091, allocations: 4.219 kB / 386.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000147/0.6093, allocations: 12.95 kB / 386.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003565/0.6096, allocations: 154.7 kB / 387 MB, free: 12.26 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]