Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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: "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.109/2.109, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003612, allocations: 8 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1148, allocations: 44.49 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.497/0.6118, allocations: 71.01 MB / 379.5 MB, free: 14.92 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.6122, allocations: 66.47 kB / 379.6 MB, free: 14.92 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.0198/0.632, allocations: 3.617 MB / 383.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.632, allocations: 0 / 383.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.675e-06/0.6321, allocations: 1.531 kB / 383.2 MB, free: 14.48 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.0004964/0.6326, allocations: 389.4 kB / 383.6 MB, free: 14.1 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.6326, allocations: 14 kB / 383.6 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.162e-05/0.6327, allocations: 31.97 kB / 383.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.6327, allocations: 7.562 kB / 383.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.6333, allocations: 241.9 kB / 383.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.6333, allocations: 1.547 kB / 383.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.6334, allocations: 1.75 kB / 383.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000139/0.6335, allocations: 81.88 kB / 384 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.6335, allocations: 2.156 kB / 384 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.6336, allocations: 0 / 384 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.6336, allocations: 0 / 384 MB, free: 13.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.083e-05/0.6336, allocations: 6.25 kB / 384 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003773/0.634, allocations: 186.4 kB / 384.2 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.756e-05/0.634, allocations: 22.2 kB / 384.2 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.6341, allocations: 0 / 384.2 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.6341, allocations: 36.03 kB / 384.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.6341, allocations: 0 / 384.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001685/0.6343, allocations: 52.14 kB / 384.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.691e-05/0.6344, allocations: 129.9 kB / 384.4 MB, free: 13.3 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.6346, allocations: 159.2 kB / 384.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.6346, allocations: 27.08 kB / 384.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.981e-05/0.6347, allocations: 159 kB / 384.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.6347, allocations: 12.91 kB / 384.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-06/0.6347, allocations: 1.375 kB / 384.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.573e-05/0.6348, allocations: 316.3 kB / 385 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.793e-05/0.6348, allocations: 2.75 kB / 385.1 MB, free: 12.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.977e-05/0.6349, allocations: 48.25 kB / 385.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.104e-05/0.6349, allocations: 13.5 kB / 385.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.6349, allocations: 0 / 385.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.391e-05/0.635, allocations: 43.12 kB / 385.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.6351, allocations: 4.125 kB / 385.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.6351, allocations: 1.375 kB / 385.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.6351, allocations: 3.938 kB / 385.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.205e-05/0.6352, allocations: 7.906 kB / 385.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.6352, allocations: 0 / 385.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.6353, allocations: 5.5 kB / 385.2 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-06/0.6353, allocations: 5.297 kB / 385.2 MB, free: 12.6 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 9.612e-05/0.6354, allocations: 123.8 kB / 385.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.6355, allocations: 6.656 kB / 385.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.6355, allocations: 13.34 kB / 385.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.6355, allocations: 0 / 385.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6355, allocations: 0 / 385.3 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.6356, allocations: 6.25 kB / 385.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002101/0.6358, allocations: 177.9 kB / 385.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.6358, allocations: 0 / 385.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.14e-05/0.6359, allocations: 5.375 kB / 385.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.6359, allocations: 1.375 kB / 385.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.516e-06/0.6359, allocations: 0 / 385.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.6359, allocations: 1.875 kB / 385.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6359, allocations: 1.375 kB / 385.5 MB, free: 12.28 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001339/0.636, allocations: 73.95 kB / 385.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.097e-05/0.6361, allocations: 92.81 kB / 385.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.108e-05/0.6362, allocations: 1.375 kB / 385.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.6363, allocations: 8.297 kB / 385.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.231e-05/0.6363, allocations: 1.375 kB / 385.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.6363, allocations: 0 / 385.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001475/0.6365, allocations: 139.5 kB / 385.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6365, allocations: 0 / 385.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000305/0.6368, allocations: 20.5 kB / 385.8 MB, free: 12.03 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.0006727/0.6375, allocations: 0.7107 MB / 386.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.87e-05/0.6376, allocations: 8.031 kB / 386.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6376, allocations: 0 / 386.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.668e-05/0.6377, allocations: 9.906 kB / 386.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.6378, allocations: 13.78 kB / 386.6 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.6389, allocations: 0.5961 MB / 387.2 MB, free: 10.98 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]