Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_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.001775/0.001775, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.644/1.644, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.000868/0.0008678, allocations: 90.59 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002563, allocations: 8 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2588, allocations: 47.58 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.088/0.3468, allocations: 75.41 MB / 451.2 MB, free: 5.262 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.3471, allocations: 67.97 kB / 451.3 MB, free: 5.195 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.01056/0.3577, allocations: 3.918 MB / 455.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3577, allocations: 0 / 455.2 MB, free: 1.273 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3578, allocations: 4 kB / 455.2 MB, free: 1.27 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.0004174/0.3582, allocations: 404.8 kB / 455.6 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.3582, allocations: 12.03 kB / 455.6 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.017e-05/0.3583, allocations: 7.906 kB / 455.6 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.3589, allocations: 363.1 kB / 456 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.3589, allocations: 7.953 kB / 456 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.3589, allocations: 0 / 456 MB, free: 408 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.359, allocations: 73.92 kB / 456 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.3591, allocations: 0 / 456 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3591, allocations: 4 kB / 456.1 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.3591, allocations: 0 / 456.1 MB, free: 308 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.681e-05/0.3591, allocations: 4 kB / 456.1 MB, free: 304 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003354/0.3594, allocations: 181.7 kB / 456.2 MB, free: 72 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.067e-05/0.3595, allocations: 22.56 kB / 456.3 MB, free: 40 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.3595, allocations: 3.953 kB / 456.3 MB, free: 36 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.582e-05/0.3596, allocations: 64.31 kB / 456.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.3596, allocations: 0 / 456.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001431/0.3597, allocations: 49.61 kB / 456.4 MB, free: 15.9 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.279e-05/0.3598, allocations: 158.2 kB / 456.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.36, allocations: 157.1 kB / 456.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.36, allocations: 25.7 kB / 456.7 MB, free: 15.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.3601, allocations: 92.14 kB / 456.8 MB, free: 15.43 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.3601, allocations: 7.844 kB / 456.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.803e-06/0.3601, allocations: 0 / 456.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.3602, allocations: 322.8 kB / 457.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.35e-05/0.3603, allocations: 8.125 kB / 457.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.171e-05/0.3603, allocations: 44.22 kB / 457.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.328e-05/0.3603, allocations: 8 kB / 457.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.3604, allocations: 0 / 457.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.458e-05/0.3604, allocations: 53.58 kB / 457.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.3605, allocations: 4.094 kB / 457.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3605, allocations: 4 kB / 457.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3605, allocations: 0 / 457.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.082e-05/0.3605, allocations: 4 kB / 457.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.3605, allocations: 3.938 kB / 457.2 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.668e-05/0.3606, allocations: 7.906 kB / 457.2 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.959e-06/0.3606, allocations: 0 / 457.2 MB, free: 14.94 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.426e-05/0.3607, allocations: 125.8 kB / 457.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.838e-05/0.3608, allocations: 8 kB / 457.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.3608, allocations: 19.8 kB / 457.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.3608, allocations: 4 kB / 457.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3608, allocations: 0 / 457.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.3608, allocations: 0 / 457.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.361, allocations: 177.6 kB / 457.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.361, allocations: 0 / 457.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.385e-05/0.361, allocations: 4 kB / 457.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.3611, allocations: 0 / 457.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.3611, allocations: 7.938 kB / 457.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.3611, allocations: 0 / 457.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3611, allocations: 4 kB / 457.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.3612, allocations: 73.12 kB / 457.7 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.048e-05/0.3613, allocations: 96.97 kB / 457.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.3613, allocations: 0 / 457.8 MB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.344e-05/0.3614, allocations: 15.94 kB / 457.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.49e-05/0.3614, allocations: 4 kB / 457.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-06/0.3614, allocations: 0 / 457.8 MB, free: 14.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001056/0.3615, allocations: 127.2 kB / 457.9 MB, free: 14.19 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3616, allocations: 8.094 kB / 457.9 MB, free: 14.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000214/0.3618, allocations: 31.91 kB / 457.9 MB, free: 14.15 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.0004109/0.3622, allocations: 166.2 kB / 458.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.458e-05/0.3623, allocations: 11.98 kB / 458.1 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3623, allocations: 0 / 458.1 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.251e-05/0.3623, allocations: 8 kB / 458.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001022/0.3624, allocations: 4 kB / 458.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002911/0.3627, allocations: 161.2 kB / 458.3 MB, free: 13.8 MB / 346.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]