Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001796/0.001795, allocations: 185.3 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.991/1.991, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001185/0.001185, allocations: 85.97 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003908/0.0003906, allocations: 12 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3309, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1178/0.4488, allocations: 75.41 MB / 449.9 MB, free: 5.352 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.4491, allocations: 67.97 kB / 450 MB, free: 5.285 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.01678/0.4659, allocations: 3.904 MB / 453.9 MB, free: 1.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4659, allocations: 8 kB / 453.9 MB, free: 1.367 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.4659, allocations: 0 / 453.9 MB, free: 1.367 MB / 330.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.0005346/0.4665, allocations: 406.8 kB / 454.3 MB, free: 0.918 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.4665, allocations: 8.031 kB / 454.3 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.4666, allocations: 7.906 kB / 454.3 MB, free: 0.9023 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009031/0.4675, allocations: 373 kB / 454.7 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.4676, allocations: 7.953 kB / 454.7 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.302e-05/0.4676, allocations: 7.922 kB / 454.7 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.4678, allocations: 77.92 kB / 454.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.4678, allocations: 0 / 454.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.4678, allocations: 0 / 454.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.4678, allocations: 0 / 454.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.342e-05/0.4679, allocations: 4 kB / 454.8 MB, free: 392 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004005/0.4683, allocations: 181.7 kB / 455 MB, free: 160 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.816e-05/0.4683, allocations: 18.58 kB / 455 MB, free: 132 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.165e-05/0.4684, allocations: 7.891 kB / 455 MB, free: 124 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.848e-05/0.4684, allocations: 68.31 kB / 455.1 MB, free: 40 kB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.743e-06/0.4684, allocations: 0 / 455.1 MB, free: 40 kB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001834/0.4686, allocations: 41.61 kB / 455.1 MB, free: 15.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.608e-05/0.4687, allocations: 154.2 kB / 455.2 MB, free: 15.8 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002372/0.469, allocations: 157.3 kB / 455.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.469, allocations: 33.83 kB / 455.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.185e-05/0.4691, allocations: 158.6 kB / 455.6 MB, free: 15.45 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.404e-05/0.4691, allocations: 7.844 kB / 455.6 MB, free: 15.44 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/0.4691, allocations: 0 / 455.6 MB, free: 15.44 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.4693, allocations: 310.8 kB / 455.9 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.115e-05/0.4693, allocations: 8 kB / 455.9 MB, free: 15.12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.314e-05/0.4694, allocations: 48.22 kB / 456 MB, free: 15.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.225e-05/0.4694, allocations: 4 kB / 456 MB, free: 15.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4694, allocations: 3.938 kB / 456 MB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.666e-05/0.4695, allocations: 49.64 kB / 456 MB, free: 14.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.4696, allocations: 5.406 kB / 456 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.4696, allocations: 0 / 456 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.4696, allocations: 4 kB / 456 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.651e-05/0.4697, allocations: 4 kB / 456 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.4697, allocations: 3.938 kB / 456 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.4698, allocations: 8.094 kB / 456 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.281e-06/0.4699, allocations: 0 / 456 MB, free: 14.97 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 () * 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.0001169/0.47, allocations: 121.8 kB / 456.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.425e-05/0.47, allocations: 11.86 kB / 456.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.083e-05/0.4701, allocations: 11.83 kB / 456.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-06/0.4701, allocations: 0 / 456.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4701, allocations: 0 / 456.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4701, allocations: 3.984 kB / 456.2 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.4704, allocations: 173.7 kB / 456.4 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4704, allocations: 4 kB / 456.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.518e-05/0.4705, allocations: 4 kB / 456.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.4705, allocations: 0 / 456.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.4705, allocations: 3.953 kB / 456.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.4705, allocations: 3.938 kB / 456.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.4705, allocations: 3.984 kB / 456.4 MB, free: 14.58 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001662/0.4707, allocations: 72.98 kB / 456.4 MB, free: 14.49 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.4708, allocations: 101.2 kB / 456.5 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.288e-05/0.4709, allocations: 0 / 456.5 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.471, allocations: 7.953 kB / 456.5 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.454e-05/0.471, allocations: 3.984 kB / 456.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.4711, allocations: 0 / 456.6 MB, free: 14.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001694/0.4712, allocations: 133.7 kB / 456.7 MB, free: 14.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.284e-06/0.4712, allocations: 0 / 456.7 MB, free: 14.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.4716, allocations: 27.94 kB / 456.7 MB, free: 14.2 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 () * 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.0004588/0.472, allocations: 180.4 kB / 456.9 MB, free: 14.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.4722, allocations: 15.98 kB / 456.9 MB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4722, allocations: 4.062 kB / 456.9 MB, free: 14.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.828e-05/0.4722, allocations: 4 kB / 456.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001386/0.4724, allocations: 0 / 456.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003984/0.4728, allocations: 190.7 kB / 457.1 MB, free: 13.8 MB / 346.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]