Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009939/0.0009939, allocations: 183.8 kB / 8.354 MB, free: 0.7305 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.532/1.532, allocations: 194.3 MB / 203.1 MB, free: 13.03 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00169/0.001689, allocations: 119.5 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.579e-05/1.581e-05, allocations: 7.938 kB / 298.1 MB, free: 35.51 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08807, allocations: 44.49 MB / 342.6 MB, free: 7.004 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3239/0.412, allocations: 70.26 MB / 412.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.4123, allocations: 62.25 kB / 412.9 MB, free: 10.79 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:210:5-210:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Utilities/Streams.mo:211:5-211:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.01187/0.4242, allocations: 3.592 MB / 416.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4242, allocations: 0 / 416.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.4242, allocations: 3.812 kB / 416.5 MB, free: 10.33 MB / 298.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.0002715/0.4245, allocations: 347.6 kB / 416.8 MB, free: 9.969 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.4246, allocations: 11.62 kB / 416.8 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.688e-05/0.4246, allocations: 7.75 kB / 416.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006507/0.4253, allocations: 373.3 kB / 417.2 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.4253, allocations: 0 / 417.2 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.568e-05/0.4254, allocations: 0 / 417.2 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.603e-05/0.4254, allocations: 6.922 kB / 417.2 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.4255, allocations: 70.03 kB / 417.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.4256, allocations: 0 / 417.3 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.4256, allocations: 11.56 kB / 417.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.4256, allocations: 0 / 417.3 MB, free: 9.672 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000347/0.426, allocations: 164.9 kB / 417.4 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.586e-05/0.426, allocations: 18.52 kB / 417.5 MB, free: 9.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.995e-05/0.426, allocations: 12.39 kB / 417.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.219e-05/0.4261, allocations: 0 / 417.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.4261, allocations: 38.41 kB / 417.5 MB, free: 9.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.4261, allocations: 0 / 417.5 MB, free: 9.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001466/0.4263, allocations: 39.92 kB / 417.5 MB, free: 9.395 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.617e-05/0.4263, allocations: 128.5 kB / 417.7 MB, free: 9.238 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.4265, allocations: 160.2 kB / 417.8 MB, free: 9.141 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.4265, allocations: 25.7 kB / 417.9 MB, free: 9.109 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.916e-05/0.4266, allocations: 91.02 kB / 417.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.4266, allocations: 6.766 kB / 417.9 MB, free: 9.023 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-06/0.4266, allocations: 0 / 417.9 MB, free: 9.023 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.139e-05/0.4267, allocations: 325 kB / 418.3 MB, free: 8.707 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.241e-05/0.4267, allocations: 0 / 418.3 MB, free: 8.707 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.645e-05/0.4267, allocations: 51.02 kB / 418.3 MB, free: 8.656 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.297e-05/0.4268, allocations: 11.77 kB / 418.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4268, allocations: 0 / 418.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.874e-05/0.4269, allocations: 55.64 kB / 418.4 MB, free: 8.609 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.4269, allocations: 7.469 kB / 418.4 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4269, allocations: 4 kB / 418.4 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.4269, allocations: 0 / 418.4 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.291e-05/0.427, allocations: 3.875 kB / 418.4 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.427, allocations: 3.938 kB / 418.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.484e-05/0.4271, allocations: 7.203 kB / 418.4 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.4271, allocations: 0 / 418.4 MB, free: 8.602 MB / 298.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 () * 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 6.891e-05/0.4272, allocations: 112.6 kB / 418.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.272e-05/0.4272, allocations: 11.66 kB / 418.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.919e-05/0.4273, allocations: 11.34 kB / 418.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.4273, allocations: 0 / 418.5 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.4273, allocations: 6.656 kB / 418.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.4273, allocations: 0 / 418.5 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.4275, allocations: 150.3 kB / 418.7 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.4275, allocations: 0 / 418.7 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.094e-05/0.4275, allocations: 0 / 418.7 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.4275, allocations: 7.766 kB / 418.7 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.4275, allocations: 0 / 418.7 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4276, allocations: 4 kB / 418.7 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4276, allocations: 0 / 418.7 MB, free: 8.312 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.4277, allocations: 75.3 kB / 418.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.379e-05/0.4278, allocations: 95.12 kB / 418.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.4278, allocations: 7.766 kB / 418.9 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.246e-05/0.4279, allocations: 0 / 418.9 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.516e-05/0.4279, allocations: 10.81 kB / 418.9 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.4279, allocations: 4.094 kB / 418.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001057/0.428, allocations: 124.9 kB / 419 MB, free: 8.059 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.428, allocations: 0 / 419 MB, free: 8.059 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003761/0.4284, allocations: 25.91 kB / 419 MB, free: 8.051 MB / 298.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 () * 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.0004096/0.4288, allocations: 172.2 kB / 419.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.501e-05/0.4289, allocations: 11.38 kB / 419.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.429, allocations: 0 / 419.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.707e-06/0.429, allocations: 3.781 kB / 419.2 MB, free: 7.906 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001477/0.4291, allocations: 12.27 kB / 419.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002682/0.4294, allocations: 103.8 kB / 419.3 MB, free: 7.82 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]