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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001349/0.00135, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.4 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 63.42 kB / 307.6 MB, free: 0.6641 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08902/0.09026, allocations: 50.52 MB / 358.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001892/0.09219, allocations: 0.5175 MB / 358.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002359/0.09458, allocations: 1.849 MB / 360.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.699e-05/0.09465, allocations: 11.94 kB / 360.5 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004086/0.09877, allocations: 144 kB / 360.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.173e-05/0.09885, allocations: 27.91 kB / 360.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.09906, allocations: 55.86 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.09918, allocations: 67.81 kB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.516e-05/0.09922, allocations: 4 kB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.507e-05/0.09928, allocations: 23.91 kB / 360.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.09942, allocations: 23.92 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.09944, allocations: 3.938 kB / 360.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.895e-05/0.09951, allocations: 15.98 kB / 360.9 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.021e-05/0.09956, allocations: 15.92 kB / 360.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.635e-05/0.09962, allocations: 19.86 kB / 360.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.0998, allocations: 63.8 kB / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09982, allocations: 4 kB / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09982, allocations: 0 / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.09984, allocations: 0 / 361 MB, free: 11.31 MB / 302.1 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.0003984/0.1002, allocations: 401.1 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.1003, allocations: 8.031 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.1003, allocations: 8.844 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.1006, allocations: 208.2 kB / 361.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.535e-06/0.1006, allocations: 4.375 kB / 361.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.1006, allocations: 4.281 kB / 361.6 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.1007, allocations: 86.22 kB / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1007, allocations: 0 / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/0.1008, allocations: 0 / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.1008, allocations: 0 / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.117e-05/0.1008, allocations: 7.984 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002968/0.1011, allocations: 173.6 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.802e-05/0.1012, allocations: 34.52 kB / 361.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.734e-05/0.1012, allocations: 8.922 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.024e-06/0.1012, allocations: 0 / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.929e-05/0.1012, allocations: 64.19 kB / 362 MB, free: 10.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1012, allocations: 0 / 362 MB, free: 10.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001286/0.1014, allocations: 41.7 kB / 362 MB, free: 10.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/0.1015, allocations: 158.3 kB / 362.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.1016, allocations: 160.5 kB / 362.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.1016, allocations: 33.69 kB / 362.3 MB, free: 9.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.44e-05/0.1017, allocations: 88.14 kB / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.1017, allocations: 11.84 kB / 362.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.627e-05/0.1018, allocations: 17.7 kB / 362.5 MB, free: 9.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1019, allocations: 318.8 kB / 362.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.384e-05/0.1019, allocations: 0 / 362.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.316e-05/0.102, allocations: 48.28 kB / 362.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.131e-05/0.102, allocations: 16.86 kB / 362.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.102, allocations: 4 kB / 362.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.482e-05/0.1021, allocations: 49.53 kB / 362.9 MB, free: 9.105 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1021, allocations: 14.59 kB / 362.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.1021, allocations: 0 / 362.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1022, allocations: 96 / 362.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.991e-05/0.1022, allocations: 8 kB / 362.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1022, allocations: 0 / 362.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.482e-05/0.1023, allocations: 7.922 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.1023, allocations: 0 / 362.9 MB, free: 9.078 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.106e-05/0.1024, allocations: 121.8 kB / 363 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.021e-05/0.1024, allocations: 11.84 kB / 363 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.581e-05/0.1024, allocations: 15.81 kB / 363.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.1024, allocations: 0 / 363.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1025, allocations: 0 / 363.1 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.1025, allocations: 4 kB / 363.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001706/0.1026, allocations: 173.7 kB / 363.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.1026, allocations: 0 / 363.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.606e-05/0.1027, allocations: 4 kB / 363.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1027, allocations: 3.938 kB / 363.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.1027, allocations: 3.938 kB / 363.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.1027, allocations: 0 / 363.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1027, allocations: 0 / 363.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.1028, allocations: 80.97 kB / 363.3 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.438e-05/0.1029, allocations: 89.06 kB / 363.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.1029, allocations: 0 / 363.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.102e-05/0.103, allocations: 4 kB / 363.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.202e-05/0.103, allocations: 0 / 363.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-06/0.103, allocations: 0 / 363.4 MB, free: 8.477 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.222e-05/0.1031, allocations: 130.2 kB / 363.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1031, allocations: 0 / 363.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002086/0.1033, allocations: 16 kB / 363.6 MB, free: 8.336 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002755/0.1036, allocations: 150.9 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 8.396e-05/0.1037, allocations: 11.98 kB / 363.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1037, allocations: 4.062 kB / 363.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.139e-05/0.1037, allocations: 7.938 kB / 363.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.1039, allocations: 8 kB / 363.7 MB, free: 8.168 MB / 302.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:7734:5-7734:67:writable] Error: Internal error createModelInfo failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]