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.001171/0.001171, allocations: 110 kB / 18.25 MB, free: 4.891 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.001153/0.001153, allocations: 199.5 kB / 19.18 MB, free: 3.969 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.437/1.437, allocations: 205.1 MB / 225 MB, free: 12.3 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.001257/0.001258, allocations: 56.14 kB / 281.3 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09222/0.09349, allocations: 46.63 MB / 327.9 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001743/0.09528, allocations: 0.5179 MB / 328.5 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.0975, allocations: 1.837 MB / 330.3 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.899e-05/0.09755, allocations: 0 / 330.3 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.09955, allocations: 137.8 kB / 330.4 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.99e-05/0.09962, allocations: 27.92 kB / 330.5 MB, free: 1.945 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.09984, allocations: 47.86 kB / 330.5 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.09996, allocations: 71.86 kB / 330.6 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.603e-05/0.1, allocations: 0 / 330.6 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.391e-05/0.1001, allocations: 31.86 kB / 330.6 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.1002, allocations: 35.83 kB / 330.6 MB, free: 1.762 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.1002, allocations: 8 kB / 330.6 MB, free: 1.754 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.118e-05/0.1003, allocations: 12 kB / 330.7 MB, free: 1.742 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.978e-05/0.1004, allocations: 15.98 kB / 330.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.124e-05/0.1004, allocations: 31.72 kB / 330.7 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002011/0.1006, allocations: 59.86 kB / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1007, allocations: 0 / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.1007, allocations: 0 / 330.8 MB, free: 1.637 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.1007, allocations: 3.938 kB / 330.8 MB, free: 1.633 MB / 270.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.0004462/0.1011, allocations: 397.2 kB / 331.2 MB, free: 1.191 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.1012, allocations: 8.031 kB / 331.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.1012, allocations: 12.84 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004364/0.1017, allocations: 320.1 kB / 331.5 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.388e-06/0.1017, allocations: 4.312 kB / 331.5 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.1017, allocations: 384 / 331.5 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.1018, allocations: 78.23 kB / 331.6 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-06/0.1019, allocations: 0 / 331.6 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.1019, allocations: 4 kB / 331.6 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.1019, allocations: 4 kB / 331.6 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.557e-05/0.1019, allocations: 3.938 kB / 331.6 MB, free: 0.707 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/0.1022, allocations: 177.7 kB / 331.8 MB, free: 496 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.173e-05/0.1023, allocations: 18.58 kB / 331.8 MB, free: 468 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.941e-05/0.1023, allocations: 8.922 kB / 331.8 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.1023, allocations: 0 / 331.8 MB, free: 456 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.082e-05/0.1024, allocations: 68.2 kB / 331.8 MB, free: 372 kB / 270.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.1024, allocations: 3.938 kB / 331.9 MB, free: 368 kB / 270.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001426/0.1025, allocations: 49.59 kB / 331.9 MB, free: 312 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.1026, allocations: 154.2 kB / 332 MB, free: 120 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.1028, allocations: 157.2 kB / 332.2 MB, free: 15.95 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1028, allocations: 25.7 kB / 332.2 MB, free: 15.92 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.727e-05/0.1029, allocations: 96.12 kB / 332.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.313e-05/0.1029, allocations: 11.97 kB / 332.3 MB, free: 15.81 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.477e-05/0.1029, allocations: 21.72 kB / 332.4 MB, free: 15.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1031, allocations: 314.8 kB / 332.7 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.239e-05/0.1031, allocations: 4 kB / 332.7 MB, free: 15.46 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.252e-05/0.1031, allocations: 48.22 kB / 332.7 MB, free: 15.4 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.307e-05/0.1032, allocations: 16.92 kB / 332.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.1032, allocations: 4 kB / 332.7 MB, free: 15.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.415e-05/0.1033, allocations: 49.53 kB / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.267e-05/0.1033, allocations: 4 kB / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1033, allocations: 0 / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.1033, allocations: 4 kB / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.779e-05/0.1033, allocations: 0 / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1034, allocations: 0 / 332.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.61e-05/0.1034, allocations: 4 kB / 332.8 MB, free: 15.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.1034, allocations: 0 / 332.8 MB, free: 15.31 MB / 286.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.659e-05/0.1035, allocations: 125.9 kB / 332.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.1036, allocations: 15.78 kB / 332.9 MB, free: 15.16 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.407e-05/0.1036, allocations: 11.83 kB / 332.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.1036, allocations: 3.938 kB / 332.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1036, allocations: 0 / 332.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.1036, allocations: 0 / 332.9 MB, free: 15.15 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.1038, allocations: 177.7 kB / 333.1 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1038, allocations: 3.984 kB / 333.1 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.583e-05/0.1038, allocations: 3.938 kB / 333.1 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-06/0.1039, allocations: 0 / 333.1 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.991e-06/0.1039, allocations: 4 kB / 333.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1039, allocations: 4 kB / 333.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1039, allocations: 0 / 333.1 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001189/0.104, allocations: 65.12 kB / 333.2 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.434e-05/0.1041, allocations: 92.97 kB / 333.3 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.1041, allocations: 7.938 kB / 333.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.201e-05/0.1042, allocations: 0 / 333.3 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.243e-05/0.1042, allocations: 8.094 kB / 333.3 MB, free: 14.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-06/0.1042, allocations: 0 / 333.3 MB, free: 14.7 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.1043, allocations: 123.2 kB / 333.4 MB, free: 14.58 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1043, allocations: 0 / 333.4 MB, free: 14.58 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002155/0.1045, allocations: 20 kB / 333.4 MB, free: 14.56 MB / 286.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.0003595/0.1049, allocations: 179.6 kB / 333.6 MB, free: 14.39 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 9.611e-05/0.105, allocations: 8 kB / 333.6 MB, free: 14.38 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.105, allocations: 0 / 333.6 MB, free: 14.38 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 1.33e-05/0.105, allocations: 7.984 kB / 333.6 MB, free: 14.37 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001568/0.1052, allocations: 8.125 kB / 333.6 MB, free: 14.36 MB / 286.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]