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.0009496/0.0009497, allocations: 184.1 kB / 18.04 MB, free: 3.754 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.405/1.405, allocations: 205.4 MB / 224.2 MB, free: 9.047 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.0007327/0.0007327, allocations: 88.95 kB / 272.5 MB, free: 8.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002968, allocations: 15.98 kB / 329.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2498, allocations: 47.57 MB / 377 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1252/0.3751, allocations: 75.44 MB / 452.5 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.3754, allocations: 67.97 kB / 452.5 MB, free: 5.051 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.01504/0.3904, allocations: 4.092 MB / 456.6 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of FrontEnd: time 6.853e-06/0.3905, allocations: 0 / 456.6 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.3905, allocations: 3.938 kB / 456.6 MB, free: 0.957 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.0006768/0.3912, allocations: 405 kB / 457 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.748e-05/0.3913, allocations: 8.031 kB / 457 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.3914, allocations: 12.84 kB / 457 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.3927, allocations: 0.4959 MB / 457.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.3927, allocations: 384 / 457.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.404e-05/0.3927, allocations: 4.312 kB / 457.5 MB, free: 15.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.3929, allocations: 74.53 kB / 457.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.393, allocations: 4.125 kB / 457.6 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.157e-05/0.393, allocations: 7.938 kB / 457.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.393, allocations: 0 / 457.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.692e-05/0.393, allocations: 7.938 kB / 457.6 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005101/0.3936, allocations: 185.6 kB / 457.8 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.814e-05/0.3936, allocations: 18.58 kB / 457.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.23e-05/0.3937, allocations: 4.859 kB / 457.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.264e-06/0.3937, allocations: 0 / 457.8 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.3937, allocations: 68.33 kB / 457.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.193e-06/0.3937, allocations: 0 / 457.9 MB, free: 15.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001715/0.3939, allocations: 49.56 kB / 457.9 MB, free: 15.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.827e-05/0.394, allocations: 154.2 kB / 458.1 MB, free: 15.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002522/0.3943, allocations: 172.7 kB / 458.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.3943, allocations: 25.7 kB / 458.3 MB, free: 15.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.301e-05/0.3944, allocations: 92.14 kB / 458.4 MB, free: 14.94 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.3945, allocations: 11.83 kB / 458.4 MB, free: 14.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/0.3945, allocations: 4.125 kB / 458.4 MB, free: 14.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3946, allocations: 318.8 kB / 458.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.826e-05/0.3947, allocations: 4 kB / 458.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.293e-05/0.3947, allocations: 40.28 kB / 458.7 MB, free: 14.54 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.824e-05/0.3948, allocations: 20.84 kB / 458.8 MB, free: 14.52 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3948, allocations: 8 kB / 458.8 MB, free: 14.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001194/0.3949, allocations: 45.55 kB / 458.8 MB, free: 14.46 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.92e-05/0.395, allocations: 8 kB / 458.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.395, allocations: 3.938 kB / 458.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.395, allocations: 0 / 458.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.965e-05/0.3951, allocations: 4 kB / 458.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3951, allocations: 0 / 458.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3952, allocations: 7.984 kB / 458.8 MB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.3952, allocations: 0 / 458.8 MB, free: 14.44 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 0.0001088/0.3953, allocations: 121.9 kB / 459 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.3954, allocations: 7.906 kB / 459 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.745e-05/0.3954, allocations: 19.75 kB / 459 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.3954, allocations: 0 / 459 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3954, allocations: 0 / 459 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.3954, allocations: 4.031 kB / 459 MB, free: 14.28 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000288/0.3957, allocations: 173.7 kB / 459.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.191e-06/0.3958, allocations: 7.984 kB / 459.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.671e-05/0.3958, allocations: 0 / 459.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.3958, allocations: 4 kB / 459.2 MB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.3959, allocations: 7.938 kB / 459.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.3959, allocations: 0 / 459.2 MB, free: 14.04 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3959, allocations: 7.875 kB / 459.2 MB, free: 14.03 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001847/0.3961, allocations: 73.03 kB / 459.3 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.3962, allocations: 97.03 kB / 459.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.984e-05/0.3963, allocations: 7.922 kB / 459.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.736e-05/0.3964, allocations: 4 kB / 459.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.045e-05/0.3964, allocations: 4.094 kB / 459.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-06/0.3964, allocations: 0 / 459.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001859/0.3966, allocations: 137.5 kB / 459.5 MB, free: 13.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.845e-06/0.3966, allocations: 0 / 459.5 MB, free: 13.68 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003809/0.397, allocations: 23.94 kB / 459.5 MB, free: 13.66 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.0005409/0.3976, allocations: 172.2 kB / 459.7 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001051/0.3977, allocations: 15.94 kB / 459.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.3977, allocations: 4 kB / 459.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.354e-05/0.3977, allocations: 0 / 459.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.398, allocations: 8 kB / 459.7 MB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000447/0.3985, allocations: 157.3 kB / 459.9 MB, free: 13.29 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]