Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_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.001511/0.001511, allocations: 100.2 kB / 18.39 MB, free: 4.531 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.001373/0.001374, allocations: 188.3 kB / 19.33 MB, free: 3.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.585/1.585, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 51.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.09275, allocations: 46.61 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001682/0.09447, allocations: 0.5258 MB / 376.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.09697, allocations: 1.849 MB / 378.2 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.957e-05/0.09705, allocations: 3.938 kB / 378.2 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002876/0.09996, allocations: 135.4 kB / 378.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.526e-05/0.1, allocations: 27.91 kB / 378.3 MB, free: 2.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.1003, allocations: 47.92 kB / 378.4 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.1004, allocations: 59.83 kB / 378.4 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.723e-05/0.1004, allocations: 15.92 kB / 378.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.514e-05/0.1005, allocations: 31.91 kB / 378.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001086/0.1006, allocations: 31.84 kB / 378.5 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.1007, allocations: 4 kB / 378.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.775e-05/0.1007, allocations: 15.98 kB / 378.5 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.236e-05/0.1008, allocations: 19.92 kB / 378.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.1009, allocations: 15.88 kB / 378.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002078/0.1011, allocations: 67.78 kB / 378.6 MB, free: 1.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/0.1011, allocations: 4 kB / 378.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1011, allocations: 0 / 378.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1011, allocations: 0 / 378.6 MB, free: 1.723 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.0004263/0.1015, allocations: 400.8 kB / 379 MB, free: 1.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1016, allocations: 12.03 kB / 379 MB, free: 1.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.95e-05/0.1016, allocations: 4.938 kB / 379 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.1021, allocations: 324 kB / 379.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.016e-06/0.1021, allocations: 384 / 379.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.1021, allocations: 384 / 379.4 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.1023, allocations: 82.23 kB / 379.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.1023, allocations: 0 / 379.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.1023, allocations: 0 / 379.4 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1023, allocations: 3.938 kB / 379.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.997e-05/0.1023, allocations: 4 kB / 379.5 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003171/0.1027, allocations: 177.7 kB / 379.6 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.021e-05/0.1027, allocations: 18.58 kB / 379.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.946e-05/0.1027, allocations: 16.86 kB / 379.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.882e-06/0.1028, allocations: 0 / 379.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.1028, allocations: 60.2 kB / 379.7 MB, free: 464 kB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1028, allocations: 0 / 379.7 MB, free: 464 kB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001498/0.103, allocations: 49.59 kB / 379.8 MB, free: 408 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.103, allocations: 154.2 kB / 379.9 MB, free: 216 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.1032, allocations: 153.8 kB / 380.1 MB, free: 52 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.1032, allocations: 29.83 kB / 380.1 MB, free: 16 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1776/0.2809, allocations: 90.92 kB / 380.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.777e-05/0.2809, allocations: 5.234 kB / 380.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.092e-05/0.281, allocations: 22.33 kB / 380.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.85e-05/0.281, allocations: 314.7 kB / 380.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.906e-05/0.2811, allocations: 8.266 kB / 380.5 MB, free: 12.97 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.244e-05/0.2811, allocations: 40.44 kB / 380.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.448e-05/0.2812, allocations: 17.81 kB / 380.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.2812, allocations: 1.406 kB / 380.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001018/0.2813, allocations: 50.7 kB / 380.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2813, allocations: 5.594 kB / 380.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.2813, allocations: 2.203 kB / 380.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2813, allocations: 3.594 kB / 380.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.967e-05/0.2814, allocations: 7.375 kB / 380.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.972e-06/0.2814, allocations: 0.7031 kB / 380.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.445e-05/0.2815, allocations: 2.906 kB / 380.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.2815, allocations: 1.281 kB / 380.7 MB, free: 12.89 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 7.275e-05/0.2816, allocations: 119.1 kB / 380.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.254e-05/0.2816, allocations: 8.75 kB / 380.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.526e-05/0.2816, allocations: 15.81 kB / 380.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2817, allocations: 3.938 kB / 380.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2817, allocations: 1.312 kB / 380.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2817, allocations: 4.359 kB / 380.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001591/0.2818, allocations: 171.1 kB / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2818, allocations: 0 / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.669e-05/0.2819, allocations: 8.547 kB / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2819, allocations: 0 / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.2819, allocations: 4.188 kB / 381 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2819, allocations: 3.938 kB / 381 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2819, allocations: 4.844 kB / 381 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.282, allocations: 72.06 kB / 381.1 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.303e-05/0.2821, allocations: 86.41 kB / 381.1 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.328e-05/0.2821, allocations: 5.5 kB / 381.2 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.276e-05/0.2822, allocations: 6.156 kB / 381.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.413e-05/0.2822, allocations: 3.953 kB / 381.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.2822, allocations: 2.844 kB / 381.2 MB, free: 12.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.42e-05/0.2823, allocations: 123.1 kB / 381.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2823, allocations: 1.875 kB / 381.3 MB, free: 12.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000253/0.2825, allocations: 16.58 kB / 381.3 MB, free: 12.34 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.0003197/0.2829, allocations: 177.1 kB / 381.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.772e-05/0.283, allocations: 12.89 kB / 381.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.283, allocations: 3.75 kB / 381.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.062e-05/0.283, allocations: 7.391 kB / 381.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001506/0.2832, allocations: 8.094 kB / 381.5 MB, free: 12.23 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]