Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 112.2 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001438/0.001438, allocations: 187.1 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 47.92 kB / 351.9 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2716, allocations: 49.42 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001644/0.2733, allocations: 0.5413 MB / 401.9 MB, free: 8.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.2755, allocations: 1.799 MB / 403.7 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.347e-05/0.2755, allocations: 4 kB / 403.7 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003626/0.2791, allocations: 125.4 kB / 403.8 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.107e-05/0.2792, allocations: 31.89 kB / 403.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002138/0.2794, allocations: 43.89 kB / 403.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001287/0.2796, allocations: 71.8 kB / 404 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.24e-05/0.2796, allocations: 0 / 404 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.888e-05/0.2797, allocations: 35.84 kB / 404 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.2798, allocations: 31.91 kB / 404 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.2799, allocations: 4 kB / 404.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.349e-05/0.2799, allocations: 12 kB / 404.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.004e-05/0.28, allocations: 19.91 kB / 404.1 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.272e-05/0.2801, allocations: 27.8 kB / 404.1 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.2803, allocations: 63.8 kB / 404.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2803, allocations: 0 / 404.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2803, allocations: 0 / 404.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.2803, allocations: 0 / 404.2 MB, free: 6.109 MB / 318.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.0004782/0.2808, allocations: 406 kB / 404.6 MB, free: 5.664 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.2808, allocations: 12.03 kB / 404.6 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.396e-05/0.2809, allocations: 4.938 kB / 404.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.2811, allocations: 216 kB / 404.8 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.2812, allocations: 384 / 404.8 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.2812, allocations: 8.359 kB / 404.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001274/0.2813, allocations: 78.23 kB / 404.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.572e-06/0.2813, allocations: 4 kB / 404.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.2813, allocations: 0 / 404.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2814, allocations: 0 / 404.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.033e-05/0.2814, allocations: 8 kB / 404.9 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003104/0.2817, allocations: 169.7 kB / 405.1 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.659e-05/0.2818, allocations: 26.56 kB / 405.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.735e-05/0.2818, allocations: 4.859 kB / 405.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.2818, allocations: 7.938 kB / 405.1 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.2818, allocations: 64.27 kB / 405.2 MB, free: 4.938 MB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.2819, allocations: 0 / 405.2 MB, free: 4.938 MB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001368/0.282, allocations: 49.59 kB / 405.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.473e-05/0.2821, allocations: 154.2 kB / 405.4 MB, free: 4.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.2822, allocations: 156.6 kB / 405.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.037e-05/0.2823, allocations: 25.7 kB / 405.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.2823, allocations: 88.27 kB / 405.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.2824, allocations: 8 kB / 405.6 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-05/0.2824, allocations: 25.61 kB / 405.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.2825, allocations: 314.8 kB / 406 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.518e-05/0.2825, allocations: 7.984 kB / 406 MB, free: 4.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.93e-05/0.2826, allocations: 48.22 kB / 406 MB, free: 3.988 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.838e-05/0.2826, allocations: 12.92 kB / 406 MB, free: 3.973 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2826, allocations: 4 kB / 406 MB, free: 3.969 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.079e-05/0.2827, allocations: 45.64 kB / 406.1 MB, free: 3.918 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.2827, allocations: 4 kB / 406.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2827, allocations: 0 / 406.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.2828, allocations: 3.938 kB / 406.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.321e-05/0.2828, allocations: 7.984 kB / 406.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.2828, allocations: 3.938 kB / 406.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.495e-05/0.2829, allocations: 4 kB / 406.1 MB, free: 3.895 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.059e-06/0.2829, allocations: 4.031 kB / 406.1 MB, free: 3.891 MB / 318.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 9.105e-05/0.283, allocations: 117.8 kB / 406.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.283, allocations: 11.84 kB / 406.2 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.38e-05/0.2831, allocations: 7.859 kB / 406.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2831, allocations: 4 kB / 406.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2831, allocations: 0 / 406.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2831, allocations: 0 / 406.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001966/0.2833, allocations: 169.7 kB / 406.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2833, allocations: 0 / 406.4 MB, free: 3.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.778e-05/0.2833, allocations: 15.88 kB / 406.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.2833, allocations: 0 / 406.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.2834, allocations: 3.984 kB / 406.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.2834, allocations: 0 / 406.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2834, allocations: 0 / 406.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001134/0.2835, allocations: 73.03 kB / 406.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.212e-05/0.2835, allocations: 92.92 kB / 406.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.2836, allocations: 4 kB / 406.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.203e-05/0.2836, allocations: 8.078 kB / 406.6 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.151e-05/0.2837, allocations: 4 kB / 406.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-06/0.2837, allocations: 0 / 406.6 MB, free: 3.289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.376e-05/0.2838, allocations: 125.6 kB / 406.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2838, allocations: 0 / 406.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002077/0.284, allocations: 16 kB / 406.7 MB, free: 3.152 MB / 318.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.0003543/0.2843, allocations: 189.2 kB / 406.9 MB, free: 3 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.733e-05/0.2844, allocations: 8 kB / 406.9 MB, free: 2.992 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2844, allocations: 4.062 kB / 406.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.868e-06/0.2845, allocations: 4 kB / 406.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001601/0.2846, allocations: 11.27 kB / 407 MB, free: 2.977 MB / 318.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:7733:5-7733: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]