Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001255, allocations: 199 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008573/0.0008573, allocations: 95 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002719/0.0002721, allocations: 4 kB / 358 MB, free: 9.465 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2319, allocations: 51.49 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09669/0.3286, allocations: 77.11 MB / 486.6 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.3289, allocations: 63.97 kB / 486.7 MB, free: 13.46 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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 trunk/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 trunk/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 trunk/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 trunk/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 trunk/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 trunk/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 trunk/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.01062/0.3395, allocations: 3.661 MB / 490.3 MB, free: 9.801 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3396, allocations: 3.938 kB / 490.3 MB, free: 9.797 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.346e-06/0.3396, allocations: 4 kB / 490.3 MB, free: 9.793 MB / 362.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.0004213/0.34, allocations: 412.8 kB / 490.7 MB, free: 9.336 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.34, allocations: 8.031 kB / 490.7 MB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.458e-05/0.3401, allocations: 30.56 kB / 490.8 MB, free: 9.289 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.3402, allocations: 11.91 kB / 490.8 MB, free: 9.277 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003318/0.3405, allocations: 221.2 kB / 491 MB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.3405, allocations: 7.953 kB / 491 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.533e-05/0.3405, allocations: 0 / 491 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.3407, allocations: 77.86 kB / 491.1 MB, free: 8.918 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.3407, allocations: 4 kB / 491.1 MB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.3407, allocations: 4 kB / 491.1 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3407, allocations: 0 / 491.1 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.807e-05/0.3407, allocations: 4 kB / 491.1 MB, free: 8.906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003271/0.3411, allocations: 193.6 kB / 491.3 MB, free: 8.668 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.319e-05/0.3411, allocations: 18.53 kB / 491.3 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.582e-06/0.3411, allocations: 4.062 kB / 491.3 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/0.3412, allocations: 56.27 kB / 491.4 MB, free: 8.566 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.3412, allocations: 7.938 kB / 491.4 MB, free: 8.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001513/0.3413, allocations: 49.59 kB / 491.4 MB, free: 8.504 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.946e-05/0.3414, allocations: 154.2 kB / 491.6 MB, free: 8.316 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.3416, allocations: 153.3 kB / 491.7 MB, free: 8.156 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3416, allocations: 29.7 kB / 491.7 MB, free: 8.121 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.876e-05/0.3417, allocations: 96.12 kB / 491.8 MB, free: 8.023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.3417, allocations: 7.906 kB / 491.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.244e-06/0.3417, allocations: 0 / 491.8 MB, free: 8.016 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3418, allocations: 315 kB / 492.2 MB, free: 7.699 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.608e-05/0.3419, allocations: 8 kB / 492.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.052e-05/0.3419, allocations: 44.88 kB / 492.2 MB, free: 7.633 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.191e-05/0.342, allocations: 11.14 kB / 492.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.342, allocations: 0 / 492.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.89e-05/0.342, allocations: 49.72 kB / 492.3 MB, free: 7.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.3421, allocations: 8 kB / 492.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.3421, allocations: 0 / 492.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.3421, allocations: 0 / 492.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.841e-05/0.3421, allocations: 0 / 492.3 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.3421, allocations: 4 kB / 492.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.411e-05/0.3422, allocations: 11.94 kB / 492.3 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.3422, allocations: 7.922 kB / 492.3 MB, free: 7.539 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 8.105e-05/0.3423, allocations: 121.8 kB / 492.4 MB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.3424, allocations: 15.89 kB / 492.4 MB, free: 7.395 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.305e-05/0.3424, allocations: 11.86 kB / 492.4 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3424, allocations: 0 / 492.4 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3424, allocations: 0 / 492.4 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3424, allocations: 0 / 492.4 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.3426, allocations: 173.7 kB / 492.6 MB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3426, allocations: 3.984 kB / 492.6 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.527e-05/0.3426, allocations: 0 / 492.6 MB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.3427, allocations: 3.953 kB / 492.6 MB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.625e-06/0.3427, allocations: 4 kB / 492.6 MB, free: 7.156 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.3427, allocations: 3.984 kB / 492.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3427, allocations: 7.938 kB / 492.6 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001224/0.3428, allocations: 69.12 kB / 492.7 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.831e-05/0.3429, allocations: 101 kB / 492.8 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.485e-05/0.3429, allocations: 3.953 kB / 492.8 MB, free: 6.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.554e-05/0.343, allocations: 4 kB / 492.8 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.344e-05/0.343, allocations: 0 / 492.8 MB, free: 6.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.535e-06/0.343, allocations: 4.031 kB / 492.8 MB, free: 6.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001129/0.3432, allocations: 141.6 kB / 492.9 MB, free: 6.793 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3432, allocations: 0 / 492.9 MB, free: 6.793 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.3434, allocations: 24 kB / 493 MB, free: 6.77 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.0006321/0.344, allocations: 0.6851 MB / 493.7 MB, free: 6.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.82e-05/0.3441, allocations: 16 kB / 493.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3441, allocations: 4 kB / 493.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.142e-05/0.3442, allocations: 7.875 kB / 493.7 MB, free: 6.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001158/0.3443, allocations: 15.98 kB / 493.7 MB, free: 6.047 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008323/0.3451, allocations: 0.5721 MB / 494.3 MB, free: 5.418 MB / 362.7 MB [/var/lib/jenkins1/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]