Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001425/0.001425, allocations: 177.2 kB / 17.41 MB, free: 4.285 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.4 MB / 223.6 MB, free: 8.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007376/0.0007377, allocations: 88.98 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003015/0.0003017, allocations: 8 kB / 328.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2215, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09178/0.3133, allocations: 75.43 MB / 451.1 MB, free: 5.191 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002318/0.3136, allocations: 67.97 kB / 451.2 MB, free: 5.125 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.01052/0.3241, allocations: 4.091 MB / 455.3 MB, free: 1.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.3242, allocations: 0 / 455.3 MB, free: 1.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.3242, allocations: 4 kB / 455.3 MB, free: 1.027 MB / 330.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.0004422/0.3246, allocations: 409 kB / 455.7 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.3247, allocations: 8.031 kB / 455.7 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.261e-05/0.3247, allocations: 12.78 kB / 455.7 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007194/0.3255, allocations: 0.492 MB / 456.2 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.3255, allocations: 4.312 kB / 456.2 MB, free: 16 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.9e-05/0.3255, allocations: 4.375 kB / 456.2 MB, free: 12 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001628/0.3257, allocations: 74.48 kB / 456.3 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.3257, allocations: 192 / 456.3 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.477e-05/0.3257, allocations: 3.938 kB / 456.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3257, allocations: 0 / 456.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.323e-05/0.3258, allocations: 8 kB / 456.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003237/0.3261, allocations: 181.6 kB / 456.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.934e-05/0.3262, allocations: 26.52 kB / 456.5 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.232e-05/0.3262, allocations: 8.922 kB / 456.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.133e-06/0.3262, allocations: 0 / 456.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.3262, allocations: 60.25 kB / 456.6 MB, free: 15.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3263, allocations: 0 / 456.6 MB, free: 15.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001362/0.3264, allocations: 45.58 kB / 456.6 MB, free: 15.51 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.516e-05/0.3265, allocations: 162.2 kB / 456.8 MB, free: 15.31 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001793/0.3267, allocations: 172.3 kB / 457 MB, free: 15.13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.3267, allocations: 29.7 kB / 457 MB, free: 15.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.534e-05/0.3268, allocations: 92.12 kB / 457.1 MB, free: 15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.577e-05/0.3268, allocations: 11.84 kB / 457.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-06/0.3268, allocations: 0 / 457.1 MB, free: 14.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.327, allocations: 314.8 kB / 457.4 MB, free: 14.68 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.34e-05/0.327, allocations: 4 kB / 457.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.258e-05/0.327, allocations: 44.28 kB / 457.4 MB, free: 14.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.002e-05/0.3271, allocations: 20.84 kB / 457.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3271, allocations: 3.938 kB / 457.5 MB, free: 14.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.941e-05/0.3272, allocations: 45.55 kB / 457.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.3272, allocations: 4 kB / 457.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.3272, allocations: 3.938 kB / 457.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3272, allocations: 4 kB / 457.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.516e-05/0.3272, allocations: 0 / 457.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3273, allocations: 8.078 kB / 457.5 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.345e-05/0.3273, allocations: 12 kB / 457.5 MB, free: 14.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.3274, allocations: 0 / 457.5 MB, free: 14.5 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 () * 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.984e-05/0.3275, allocations: 113.8 kB / 457.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.859e-05/0.3275, allocations: 7.906 kB / 457.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.676e-05/0.3275, allocations: 19.75 kB / 457.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3275, allocations: 4 kB / 457.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.3275, allocations: 4 kB / 457.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3276, allocations: 0 / 457.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.3277, allocations: 177.6 kB / 457.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3278, allocations: 0 / 457.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.374e-05/0.3278, allocations: 0 / 457.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.3278, allocations: 3.938 kB / 457.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-06/0.3278, allocations: 3.938 kB / 457.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3278, allocations: 4 kB / 457.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3278, allocations: 0 / 457.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001263/0.328, allocations: 77 kB / 457.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/0.328, allocations: 101 kB / 458 MB, free: 13.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.3281, allocations: 7.938 kB / 458.1 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.477e-05/0.3281, allocations: 4 kB / 458.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.041e-05/0.3282, allocations: 0 / 458.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-06/0.3282, allocations: 0 / 458.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000123/0.3283, allocations: 137.8 kB / 458.2 MB, free: 13.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.405e-06/0.3283, allocations: 0 / 458.2 MB, free: 13.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002107/0.3285, allocations: 27.92 kB / 458.2 MB, free: 13.73 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 () * 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.0003889/0.3289, allocations: 182.4 kB / 458.4 MB, free: 13.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.206e-05/0.329, allocations: 15.94 kB / 458.4 MB, free: 13.56 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.329, allocations: 0 / 458.4 MB, free: 13.56 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.107e-05/0.329, allocations: 4 kB / 458.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.3292, allocations: 8 kB / 458.4 MB, free: 13.55 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003511/0.3296, allocations: 186.9 kB / 458.6 MB, free: 13.33 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:762:5-762:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]