Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001269/0.001269, allocations: 176 kB / 17.4 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 223.3 MB / 241.4 MB, free: 11.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 90.3 kB / 292.6 MB, free: 10.76 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003071/0.0003071, allocations: 8 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1982, allocations: 50.39 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08642/0.2847, allocations: 76.34 MB / 479.1 MB, free: 4.023 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001714/0.2849, allocations: 67.97 kB / 479.1 MB, free: 3.957 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.00959/0.2945, allocations: 3.59 MB / 482.7 MB, free: 380 kB / 346.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.2946, allocations: 3.938 kB / 482.7 MB, free: 376 kB / 346.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.2946, allocations: 0 / 482.7 MB, free: 376 kB / 346.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.0004696/0.2951, allocations: 413 kB / 483.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.2951, allocations: 8.031 kB / 483.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.2952, allocations: 8.844 kB / 483.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.2955, allocations: 224.1 kB / 483.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.2955, allocations: 4.375 kB / 483.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.2955, allocations: 384 / 483.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001442/0.2957, allocations: 78.48 kB / 483.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.2957, allocations: 4.172 kB / 483.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.707e-05/0.2958, allocations: 3.938 kB / 483.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.2958, allocations: 0 / 483.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.111e-05/0.2958, allocations: 4 kB / 483.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003892/0.2962, allocations: 185.6 kB / 483.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.862e-05/0.2963, allocations: 18.52 kB / 483.7 MB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.32e-05/0.2963, allocations: 12.91 kB / 483.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.2963, allocations: 4 kB / 483.7 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.503e-05/0.2964, allocations: 64.2 kB / 483.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.353e-06/0.2964, allocations: 4 kB / 483.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001519/0.2965, allocations: 37.64 kB / 483.8 MB, free: 15.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.2967, allocations: 166.1 kB / 483.9 MB, free: 14.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.2968, allocations: 168.5 kB / 484.1 MB, free: 14.74 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.2969, allocations: 25.7 kB / 484.1 MB, free: 14.71 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.767e-05/0.2969, allocations: 100.2 kB / 484.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.14e-05/0.297, allocations: 3.906 kB / 484.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.014e-06/0.297, allocations: 0 / 484.2 MB, free: 14.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.2971, allocations: 318.8 kB / 484.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.419e-05/0.2971, allocations: 3.984 kB / 484.5 MB, free: 14.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.773e-05/0.2972, allocations: 44.94 kB / 484.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.663e-05/0.2972, allocations: 20.92 kB / 484.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.2972, allocations: 0 / 484.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.003e-05/0.2973, allocations: 45.55 kB / 484.6 MB, free: 14.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2973, allocations: 4 kB / 484.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.2973, allocations: 7.938 kB / 484.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2974, allocations: 0 / 484.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.997e-05/0.2974, allocations: 3.984 kB / 484.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.2974, allocations: 4 kB / 484.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.823e-05/0.2975, allocations: 7.938 kB / 484.7 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.2975, allocations: 4.031 kB / 484.7 MB, free: 14.12 MB / 362.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.0001003/0.2976, allocations: 121.8 kB / 484.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.073e-05/0.2976, allocations: 11.91 kB / 484.8 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.096e-05/0.2977, allocations: 11.81 kB / 484.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.2977, allocations: 0 / 484.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2977, allocations: 0 / 484.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2977, allocations: 0 / 484.8 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.2979, allocations: 177.6 kB / 485 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2979, allocations: 0 / 485 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-05/0.2979, allocations: 3.938 kB / 485 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.298, allocations: 4 kB / 485 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.298, allocations: 7.938 kB / 485 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.298, allocations: 0 / 485 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.298, allocations: 0 / 485 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.2981, allocations: 77 kB / 485.1 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.545e-05/0.2982, allocations: 96.98 kB / 485.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.2982, allocations: 7.938 kB / 485.2 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.145e-05/0.2983, allocations: 8.094 kB / 485.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.2983, allocations: 0 / 485.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-06/0.2983, allocations: 0 / 485.2 MB, free: 13.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001175/0.2985, allocations: 138.2 kB / 485.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2985, allocations: 0 / 485.3 MB, free: 13.37 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.2987, allocations: 20 kB / 485.4 MB, free: 13.35 MB / 362.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.000426/0.2991, allocations: 186.3 kB / 485.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.154e-05/0.2992, allocations: 12 kB / 485.5 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.2992, allocations: 8.062 kB / 485.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.06e-05/0.2992, allocations: 3.938 kB / 485.6 MB, free: 13.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001557/0.2994, allocations: 8 kB / 485.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003758/0.2998, allocations: 160.9 kB / 485.7 MB, free: 12.98 MB / 362.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]