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: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000948/0.000948, allocations: 99.56 kB / 286.7 MB, free: 5.289 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.594e-05/1.594e-05, allocations: 0 / 343.7 MB, free: 8.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1165, allocations: 51.47 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3396/0.4561, allocations: 76.37 MB / 471.5 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.4565, allocations: 73.84 kB / 471.6 MB, free: 14.84 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.009159/0.4657, allocations: 3.344 MB / 474.9 MB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4657, allocations: 1.812 kB / 474.9 MB, free: 13.04 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.4657, allocations: 0 / 474.9 MB, free: 13.04 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.0002502/0.466, allocations: 375.7 kB / 475.3 MB, free: 12.63 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.466, allocations: 8.031 kB / 475.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.4661, allocations: 14.17 kB / 475.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/0.4664, allocations: 221.5 kB / 475.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.4664, allocations: 0 / 475.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.4664, allocations: 3.609 kB / 475.5 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.028e-05/0.4665, allocations: 4 kB / 475.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.194e-05/0.4665, allocations: 69.78 kB / 475.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.515e-06/0.4666, allocations: 6.938 kB / 475.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.4666, allocations: 4 kB / 475.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.4666, allocations: 0 / 475.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002887/0.4669, allocations: 165.8 kB / 475.8 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.081e-05/0.4669, allocations: 18.31 kB / 475.8 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.832e-05/0.467, allocations: 9.531 kB / 475.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.467, allocations: 3.938 kB / 475.8 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.467, allocations: 65.2 kB / 475.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.467, allocations: 0 / 475.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001264/0.4671, allocations: 38.92 kB / 475.9 MB, free: 11.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.4672, allocations: 159 kB / 476.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.4673, allocations: 152.6 kB / 476.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.138e-05/0.4674, allocations: 25.7 kB / 476.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.512e-05/0.4674, allocations: 92.77 kB / 476.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.4674, allocations: 3.906 kB / 476.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-06/0.4674, allocations: 4.031 kB / 476.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.198e-05/0.4675, allocations: 322.9 kB / 476.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.174e-05/0.4675, allocations: 4 kB / 476.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.63e-05/0.4676, allocations: 39 kB / 476.7 MB, free: 11.13 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.72e-05/0.4676, allocations: 9.438 kB / 476.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.4676, allocations: 4.062 kB / 476.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.16e-05/0.4677, allocations: 46.91 kB / 476.8 MB, free: 11.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.4677, allocations: 11.95 kB / 476.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.4677, allocations: 0 / 476.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.4677, allocations: 1.266 kB / 476.8 MB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.703e-05/0.4677, allocations: 4 kB / 476.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.4677, allocations: 0 / 476.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.241e-05/0.4678, allocations: 5.781 kB / 476.8 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.4678, allocations: 0 / 476.8 MB, free: 11.05 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 5.379e-05/0.4679, allocations: 109 kB / 476.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.775e-05/0.4679, allocations: 7.906 kB / 476.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.623e-05/0.4679, allocations: 17.12 kB / 476.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.468, allocations: 7.938 kB / 476.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.468, allocations: 3.938 kB / 476.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.468, allocations: 1.969 kB / 476.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.4681, allocations: 146.4 kB / 477.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4681, allocations: 4 kB / 477.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.484e-05/0.4682, allocations: 2.719 kB / 477.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.4682, allocations: 1.359 kB / 477.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.4682, allocations: 4 kB / 477.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.4682, allocations: 0 / 477.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.4682, allocations: 6.953 kB / 477.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.585e-05/0.4683, allocations: 72.81 kB / 477.2 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.561e-05/0.4684, allocations: 98.14 kB / 477.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.4684, allocations: 0 / 477.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.758e-05/0.4685, allocations: 5.781 kB / 477.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.317e-05/0.4685, allocations: 8.047 kB / 477.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-06/0.4685, allocations: 4 kB / 477.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.295e-05/0.4686, allocations: 129.8 kB / 477.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4686, allocations: 0 / 477.4 MB, free: 10.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002194/0.4688, allocations: 25.5 kB / 477.4 MB, free: 10.4 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.0003287/0.4691, allocations: 171.5 kB / 477.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.84e-05/0.4692, allocations: 8 kB / 477.6 MB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4692, allocations: 8.062 kB / 477.6 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.884e-06/0.4692, allocations: 1.406 kB / 477.6 MB, free: 10.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001027/0.4694, allocations: 7.625 kB / 477.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002185/0.4696, allocations: 106.9 kB / 477.7 MB, free: 10.14 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]