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.001781/0.001781, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.649/1.649, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001001/0.001001, allocations: 89.36 kB / 292.1 MB, free: 6.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.879e-05/6.895e-05, allocations: 8 kB / 350.6 MB, free: 2.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1403, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4917/0.632, allocations: 77.04 MB / 479.2 MB, free: 12.4 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.6323, allocations: 67.86 kB / 479.2 MB, free: 12.37 MB / 346.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.009724/0.642, allocations: 3.478 MB / 482.7 MB, free: 9.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.642, allocations: 0 / 482.7 MB, free: 9.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.6421, allocations: 0 / 482.7 MB, free: 9.715 MB / 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.0002976/0.6424, allocations: 384.6 kB / 483.1 MB, free: 9.297 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.6424, allocations: 12.03 kB / 483.1 MB, free: 9.285 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.245e-05/0.6425, allocations: 31.06 kB / 483.1 MB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.299e-05/0.6425, allocations: 11.22 kB / 483.1 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003168/0.6428, allocations: 222 kB / 483.3 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.909e-06/0.6428, allocations: 0 / 483.3 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.6429, allocations: 4.422 kB / 483.3 MB, free: 8.996 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.643, allocations: 73.11 kB / 483.4 MB, free: 8.906 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.643, allocations: 0 / 483.4 MB, free: 8.906 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.6431, allocations: 4 kB / 483.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.6431, allocations: 0 / 483.4 MB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.358e-05/0.6431, allocations: 7.922 kB / 483.4 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003125/0.6434, allocations: 188.1 kB / 483.6 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.434e-05/0.6435, allocations: 22.53 kB / 483.6 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.6435, allocations: 12.7 kB / 483.6 MB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.082e-05/0.6435, allocations: 4 kB / 483.6 MB, free: 8.621 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.6435, allocations: 56.95 kB / 483.7 MB, free: 8.551 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.6435, allocations: 0 / 483.7 MB, free: 8.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001382/0.6437, allocations: 49.53 kB / 483.8 MB, free: 8.496 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.446e-05/0.6438, allocations: 158 kB / 483.9 MB, free: 8.309 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002033/0.644, allocations: 155.7 kB / 484.1 MB, free: 8.164 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.644, allocations: 25.7 kB / 484.1 MB, free: 8.133 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.192e-05/0.6441, allocations: 100.9 kB / 484.2 MB, free: 8.039 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.6441, allocations: 0 / 484.2 MB, free: 8.039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-06/0.6441, allocations: 0 / 484.2 MB, free: 8.039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.153e-05/0.6442, allocations: 318.2 kB / 484.5 MB, free: 7.723 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.514e-05/0.6442, allocations: 7.625 kB / 484.5 MB, free: 7.719 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.502e-05/0.6442, allocations: 40.28 kB / 484.5 MB, free: 7.664 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.214e-05/0.6443, allocations: 15.62 kB / 484.6 MB, free: 7.652 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.6443, allocations: 0 / 484.6 MB, free: 7.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.073e-05/0.6444, allocations: 49.55 kB / 484.6 MB, free: 7.598 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/0.6444, allocations: 5.719 kB / 484.6 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.6444, allocations: 0 / 484.6 MB, free: 7.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.6444, allocations: 4 kB / 484.6 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.985e-05/0.6444, allocations: 0 / 484.6 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.6445, allocations: 0 / 484.6 MB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.916e-05/0.6445, allocations: 9.422 kB / 484.6 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-06/0.6446, allocations: 4 kB / 484.6 MB, free: 7.578 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 () * 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 6.073e-05/0.6446, allocations: 108.8 kB / 484.7 MB, free: 7.469 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.05e-05/0.6447, allocations: 18.05 kB / 484.8 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.929e-05/0.6447, allocations: 7.656 kB / 484.8 MB, free: 7.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.6447, allocations: 4.031 kB / 484.8 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6447, allocations: 0 / 484.8 MB, free: 7.445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.6447, allocations: 4 kB / 484.8 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001602/0.6449, allocations: 172.8 kB / 484.9 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.6449, allocations: 4 kB / 484.9 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.623e-05/0.6449, allocations: 3.938 kB / 484.9 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.6449, allocations: 7.953 kB / 485 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.355e-06/0.6449, allocations: 0.875 kB / 485 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.645, allocations: 0 / 485 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.645, allocations: 0 / 485 MB, free: 7.215 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.6451, allocations: 76.72 kB / 485 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.6452, allocations: 100.6 kB / 485.1 MB, free: 7.012 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.6452, allocations: 7.953 kB / 485.1 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.18e-05/0.6453, allocations: 8.094 kB / 485.1 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.6453, allocations: 1.125 kB / 485.1 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-06/0.6453, allocations: 0 / 485.1 MB, free: 6.996 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.804e-05/0.6454, allocations: 130.8 kB / 485.3 MB, free: 6.883 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6454, allocations: 0 / 485.3 MB, free: 6.883 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000201/0.6456, allocations: 27.75 kB / 485.3 MB, free: 6.859 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 () * 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.0005502/0.6462, allocations: 0.6866 MB / 486 MB, free: 6.188 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.858e-05/0.6463, allocations: 11.38 kB / 486 MB, free: 6.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.6463, allocations: 0 / 486 MB, free: 6.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.081e-05/0.6463, allocations: 7.938 kB / 486 MB, free: 6.172 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001076/0.6464, allocations: 15.42 kB / 486 MB, free: 6.164 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003667/0.6468, allocations: 151.7 kB / 486.2 MB, free: 5.988 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:744:5-744:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]