Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 194.9 MB / 211.7 MB, free: 2.973 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006085/0.0006087, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09882/0.09947, allocations: 44.5 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3299/0.4294, allocations: 71 MB / 379.4 MB, free: 18.93 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.4297, allocations: 69.11 kB / 379.5 MB, free: 18.92 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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@2/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@2/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@2/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@2/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@2/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@2/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.01421/0.4439, allocations: 3.888 MB / 383.4 MB, free: 18.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4439, allocations: 0 / 383.4 MB, free: 18.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.811e-06/0.444, allocations: 1.562 kB / 383.4 MB, free: 18.46 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.0003573/0.4443, allocations: 375.4 kB / 383.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.4444, allocations: 12.69 kB / 383.8 MB, free: 18.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.906e-05/0.4444, allocations: 7.562 kB / 383.8 MB, free: 18.08 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006333/0.4451, allocations: 373.5 kB / 384.1 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.4451, allocations: 4.719 kB / 384.1 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.678e-05/0.4451, allocations: 1.969 kB / 384.1 MB, free: 17.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.4453, allocations: 82.98 kB / 384.2 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.4453, allocations: 0 / 384.2 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.4453, allocations: 4.406 kB / 384.2 MB, free: 17.79 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.442e-06/0.4453, allocations: 5.234 kB / 384.2 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.96e-05/0.4454, allocations: 3.422 kB / 384.2 MB, free: 17.78 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/0.4457, allocations: 183.5 kB / 384.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.874e-05/0.4457, allocations: 24.28 kB / 384.4 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.4458, allocations: 0 / 384.4 MB, free: 17.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.4458, allocations: 36.97 kB / 384.5 MB, free: 17.52 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.679e-06/0.4458, allocations: 0 / 384.5 MB, free: 17.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001453/0.446, allocations: 47.5 kB / 384.5 MB, free: 17.48 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.53e-05/0.446, allocations: 134 kB / 384.7 MB, free: 17.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001734/0.4462, allocations: 156.9 kB / 384.8 MB, free: 17.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.4462, allocations: 27.14 kB / 384.8 MB, free: 17.2 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.4463, allocations: 155.4 kB / 385 MB, free: 17.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.4463, allocations: 7.078 kB / 385 MB, free: 17.05 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.057e-06/0.4463, allocations: 4 kB / 385 MB, free: 17.05 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.907e-05/0.4464, allocations: 314.8 kB / 385.3 MB, free: 16.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.719e-05/0.4464, allocations: 3.031 kB / 385.3 MB, free: 16.73 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.777e-05/0.4465, allocations: 48.98 kB / 385.4 MB, free: 16.68 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.705e-05/0.4465, allocations: 9.562 kB / 385.4 MB, free: 16.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.161e-06/0.4465, allocations: 0 / 385.4 MB, free: 16.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.456e-05/0.4466, allocations: 50.53 kB / 385.4 MB, free: 16.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.4466, allocations: 9.438 kB / 385.4 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.933e-06/0.4467, allocations: 0 / 385.4 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.4467, allocations: 0 / 385.4 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.642e-05/0.4467, allocations: 2.75 kB / 385.4 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.307e-06/0.4467, allocations: 3.156 kB / 385.4 MB, free: 16.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.951e-05/0.4469, allocations: 12.06 kB / 385.4 MB, free: 16.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.146e-06/0.4469, allocations: 4 kB / 385.4 MB, free: 16.62 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 8.158e-05/0.447, allocations: 127.7 kB / 385.6 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.441e-05/0.447, allocations: 8.719 kB / 385.6 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.447, allocations: 8 kB / 385.6 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-06/0.4471, allocations: 0 / 385.6 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.4471, allocations: 0 / 385.6 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.329e-06/0.4471, allocations: 4.094 kB / 385.6 MB, free: 16.5 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001751/0.4473, allocations: 176.3 kB / 385.8 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.4473, allocations: 0 / 385.8 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.444e-05/0.4473, allocations: 1.375 kB / 385.8 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.708e-06/0.4474, allocations: 5.375 kB / 385.8 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.491e-06/0.4474, allocations: 1.922 kB / 385.8 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.317e-06/0.4474, allocations: 0 / 385.8 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.555e-06/0.4474, allocations: 1.375 kB / 385.8 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001211/0.4475, allocations: 73.7 kB / 385.8 MB, free: 16.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.4476, allocations: 97.19 kB / 385.9 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.4477, allocations: 1.375 kB / 385.9 MB, free: 16.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.448e-05/0.4477, allocations: 8.719 kB / 386 MB, free: 16.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.4478, allocations: 1.375 kB / 386 MB, free: 16.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.444e-06/0.4478, allocations: 0 / 386 MB, free: 16.13 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001235/0.4479, allocations: 134.6 kB / 386.1 MB, free: 16.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.08e-07/0.4479, allocations: 0 / 386.1 MB, free: 16.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002976/0.4482, allocations: 20.5 kB / 386.1 MB, free: 16.05 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.0004435/0.4487, allocations: 193.5 kB / 386.3 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.883e-05/0.4488, allocations: 15.44 kB / 386.3 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.632e-06/0.4488, allocations: 0 / 386.3 MB, free: 15.92 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.593e-05/0.4488, allocations: 6.812 kB / 386.3 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000125/0.449, allocations: 16.81 kB / 386.3 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002935/0.4493, allocations: 183.2 kB / 386.5 MB, free: 15.74 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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]