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.0009994/0.0009994, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008109/0.0008109, allocations: 90.7 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.565e-05/1.568e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09218/0.09221, allocations: 47.59 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.308/0.4002, allocations: 74.89 MB / 437.9 MB, free: 4.754 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.4005, allocations: 63.84 kB / 438 MB, free: 4.723 MB / 314.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.009431/0.4099, allocations: 3.607 MB / 441.6 MB, free: 1.855 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.41, allocations: 0 / 441.6 MB, free: 1.855 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.41, allocations: 4 kB / 441.6 MB, free: 1.852 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.0003158/0.4103, allocations: 379.8 kB / 442 MB, free: 1.438 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4104, allocations: 12.03 kB / 442 MB, free: 1.426 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.373e-05/0.4104, allocations: 19.84 kB / 442 MB, free: 1.406 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005459/0.411, allocations: 352.5 kB / 442.4 MB, free: 1.043 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.411, allocations: 3.953 kB / 442.4 MB, free: 1.039 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.411, allocations: 4 kB / 442.4 MB, free: 1.035 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.038e-05/0.411, allocations: 3.984 kB / 442.4 MB, free: 1.031 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.394e-05/0.4111, allocations: 70.67 kB / 442.4 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.4112, allocations: 4 kB / 442.5 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.4112, allocations: 0 / 442.5 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.4112, allocations: 0 / 442.5 MB, free: 0.9375 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002957/0.4115, allocations: 164.8 kB / 442.6 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.559e-05/0.4115, allocations: 26.14 kB / 442.6 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.79e-05/0.4116, allocations: 8.844 kB / 442.6 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.4116, allocations: 0 / 442.6 MB, free: 0.7031 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.826e-05/0.4116, allocations: 72.22 kB / 442.7 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.22e-07/0.4116, allocations: 0 / 442.7 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001241/0.4118, allocations: 37.69 kB / 442.8 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.465e-05/0.4118, allocations: 154.2 kB / 442.9 MB, free: 396 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.412, allocations: 154.9 kB / 443.1 MB, free: 248 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.412, allocations: 29.7 kB / 443.1 MB, free: 212 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.819e-05/0.4121, allocations: 91.45 kB / 443.2 MB, free: 124 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.841e-05/0.4121, allocations: 7.469 kB / 443.2 MB, free: 120 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-06/0.4121, allocations: 4.031 kB / 443.2 MB, free: 116 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4123, allocations: 318.8 kB / 443.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.4123, allocations: 7.438 kB / 443.5 MB, free: 15.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.764e-05/0.4123, allocations: 44.22 kB / 443.5 MB, free: 15.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.779e-05/0.4123, allocations: 7.062 kB / 443.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4124, allocations: 64 / 443.6 MB, free: 15.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.505e-05/0.4124, allocations: 49.59 kB / 443.6 MB, free: 15.67 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.4124, allocations: 7.953 kB / 443.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.4125, allocations: 0 / 443.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.4125, allocations: 0 / 443.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.714e-05/0.4125, allocations: 4 kB / 443.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.4125, allocations: 0 / 443.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.111e-05/0.4126, allocations: 4 kB / 443.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.4126, allocations: 0 / 443.6 MB, free: 15.66 MB / 330.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 () * 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 7.015e-05/0.4127, allocations: 109 kB / 443.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.888e-05/0.4127, allocations: 11.91 kB / 443.7 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.4127, allocations: 23.55 kB / 443.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-07/0.4127, allocations: 0 / 443.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.4127, allocations: 0 / 443.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.4128, allocations: 0 / 443.8 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001577/0.4129, allocations: 153.5 kB / 443.9 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.4129, allocations: 3.984 kB / 443.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.378e-05/0.413, allocations: 0 / 443.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.413, allocations: 4 kB / 443.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.413, allocations: 0 / 443.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.413, allocations: 4 kB / 443.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.413, allocations: 3.953 kB / 443.9 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001119/0.4131, allocations: 72.59 kB / 444 MB, free: 15.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.451e-05/0.4132, allocations: 96.34 kB / 444.1 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.306e-05/0.4132, allocations: 0 / 444.1 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.269e-05/0.4133, allocations: 11.98 kB / 444.1 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.085e-05/0.4133, allocations: 7.891 kB / 444.1 MB, free: 15.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-06/0.4133, allocations: 4.094 kB / 444.1 MB, free: 15.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.739e-05/0.4134, allocations: 129 kB / 444.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4134, allocations: 7.875 kB / 444.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002047/0.4136, allocations: 23.98 kB / 444.3 MB, free: 14.95 MB / 330.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 () * 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.0003226/0.414, allocations: 158.1 kB / 444.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.562e-05/0.4141, allocations: 11.98 kB / 444.4 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4141, allocations: 0 / 444.4 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.085e-06/0.4141, allocations: 4 kB / 444.4 MB, free: 14.78 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001008/0.4142, allocations: 11.56 kB / 444.5 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002278/0.4144, allocations: 109.5 kB / 444.6 MB, free: 14.64 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]