Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001501/0.001502, allocations: 180.7 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.364/1.364, allocations: 194.5 MB / 211.6 MB, free: 3.055 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001525/0.001525, allocations: 122.1 kB / 256.9 MB, free: 4.375 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003368/0.0003368, allocations: 8 kB / 310.5 MB, free: 14.96 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07637/0.07672, allocations: 44.49 MB / 355 MB, free: 2.367 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2131/0.2899, allocations: 71 MB / 426 MB, free: 18.52 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001713/0.2901, allocations: 65.41 kB / 426.1 MB, free: 18.49 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.008216/0.2983, allocations: 3.89 MB / 430 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2984, allocations: 4 kB / 430 MB, free: 15.44 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.2984, allocations: 0.7188 kB / 430 MB, free: 15.44 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.0002638/0.2986, allocations: 383.5 kB / 430.4 MB, free: 15.04 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.2987, allocations: 8.031 kB / 430.4 MB, free: 15.03 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/0.2987, allocations: 12.92 kB / 430.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.2991, allocations: 370.5 kB / 430.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.2992, allocations: 0 / 430.8 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.2992, allocations: 4 kB / 430.8 MB, free: 14.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.157e-05/0.2993, allocations: 80.62 kB / 430.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.2993, allocations: 0 / 430.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.2993, allocations: 0 / 430.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.186e-06/0.2993, allocations: 3.938 kB / 430.8 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.427e-05/0.2993, allocations: 5.531 kB / 430.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002292/0.2996, allocations: 187.5 kB / 431 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.896e-05/0.2996, allocations: 23.08 kB / 431.1 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.665e-06/0.2996, allocations: 0 / 431.1 MB, free: 14.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.566e-05/0.2997, allocations: 35.22 kB / 431.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.2997, allocations: 1.25 kB / 431.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001038/0.2998, allocations: 45.59 kB / 431.1 MB, free: 14.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.2998, allocations: 138 kB / 431.3 MB, free: 14.02 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.2999, allocations: 154.4 kB / 431.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.2999, allocations: 26.55 kB / 431.4 MB, free: 13.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.788e-05/0.3, allocations: 93.02 kB / 431.5 MB, free: 13.76 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.618e-05/0.3, allocations: 7.984 kB / 431.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.074e-06/0.3, allocations: 0.5 kB / 431.5 MB, free: 13.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.673e-05/0.3, allocations: 318.8 kB / 431.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.073e-05/0.3001, allocations: 6.125 kB / 431.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.478e-05/0.3001, allocations: 49.08 kB / 431.9 MB, free: 13.37 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.69e-05/0.3001, allocations: 7.406 kB / 431.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3001, allocations: 0 / 431.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.558e-05/0.3002, allocations: 53.84 kB / 432 MB, free: 13.31 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.578e-06/0.3002, allocations: 4 kB / 432 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.957e-06/0.3002, allocations: 4 kB / 432 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.3002, allocations: 1.125 kB / 432 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.368e-05/0.3003, allocations: 1.719 kB / 432 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.3003, allocations: 0 / 432 MB, free: 13.3 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.803e-05/0.3003, allocations: 15.84 kB / 432 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.3004, allocations: 6.672 kB / 432 MB, free: 13.28 MB / 314.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 5.571e-05/0.3004, allocations: 122.3 kB / 432.1 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.345e-05/0.3004, allocations: 8.219 kB / 432.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.987e-05/0.3005, allocations: 10.86 kB / 432.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.51e-07/0.3005, allocations: 0 / 432.1 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.3005, allocations: 6.438 kB / 432.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-06/0.3005, allocations: 0 / 432.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.3006, allocations: 175.1 kB / 432.3 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3006, allocations: 4 kB / 432.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.185e-05/0.3006, allocations: 0 / 432.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.3007, allocations: 0 / 432.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.831e-06/0.3007, allocations: 0 / 432.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3007, allocations: 3.984 kB / 432.3 MB, free: 12.92 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3007, allocations: 4 kB / 432.3 MB, free: 12.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.244e-05/0.3008, allocations: 76.22 kB / 432.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.703e-05/0.3008, allocations: 100.7 kB / 432.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.3008, allocations: 0 / 432.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.08e-05/0.3009, allocations: 4 kB / 432.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.346e-06/0.3009, allocations: 0 / 432.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-06/0.3009, allocations: 0 / 432.5 MB, free: 12.71 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.977e-05/0.301, allocations: 140.1 kB / 432.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.301, allocations: 0 / 432.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001904/0.3012, allocations: 23.62 kB / 432.7 MB, free: 12.57 MB / 314.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.000296/0.3015, allocations: 183.7 kB / 432.8 MB, free: 12.42 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.836e-05/0.3016, allocations: 15.88 kB / 432.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3016, allocations: 0 / 432.9 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.407e-06/0.3016, allocations: 7.984 kB / 432.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.79e-05/0.3017, allocations: 11.08 kB / 432.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002197/0.3019, allocations: 153.8 kB / 433 MB, free: 12.21 MB / 314.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]