Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002062/0.002061, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.072/2.072, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 91.67 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.43e-05/3.434e-05, allocations: 8 kB / 314.8 MB, free: 9.164 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.357, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1252/0.4823, allocations: 74.66 MB / 437 MB, free: 11.67 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.4826, allocations: 63.97 kB / 437 MB, free: 11.61 MB / 331.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.01677/0.4994, allocations: 3.611 MB / 440.7 MB, free: 8.02 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4995, allocations: 0 / 440.7 MB, free: 8.02 MB / 331.1 MB Notification: Performance of Transformations before backend: time 7.455e-06/0.4995, allocations: 0 / 440.7 MB, free: 8.02 MB / 331.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.0004227/0.4999, allocations: 383 kB / 441 MB, free: 7.602 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.662e-05/0.5, allocations: 8.031 kB / 441 MB, free: 7.594 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.5, allocations: 7.906 kB / 441 MB, free: 7.586 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009577/0.501, allocations: 366.7 kB / 441.4 MB, free: 7.188 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.5011, allocations: 3.953 kB / 441.4 MB, free: 7.184 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.773e-05/0.5011, allocations: 0.9375 kB / 441.4 MB, free: 7.184 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.117e-05/0.5011, allocations: 7.938 kB / 441.4 MB, free: 7.176 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001268/0.5013, allocations: 64.11 kB / 441.5 MB, free: 7.094 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.5013, allocations: 6.672 kB / 441.5 MB, free: 7.09 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.5013, allocations: 4 kB / 441.5 MB, free: 7.086 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.5013, allocations: 0 / 441.5 MB, free: 7.086 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000423/0.5018, allocations: 166.1 kB / 441.6 MB, free: 6.887 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.663e-05/0.5018, allocations: 25.38 kB / 441.7 MB, free: 6.855 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.894e-05/0.5019, allocations: 8.922 kB / 441.7 MB, free: 6.844 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.364e-06/0.5019, allocations: 0 / 441.7 MB, free: 6.844 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.342e-05/0.502, allocations: 61.25 kB / 441.7 MB, free: 6.77 MB / 331.1 MB Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.502, allocations: 0 / 441.7 MB, free: 6.77 MB / 331.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001629/0.5021, allocations: 42.55 kB / 441.8 MB, free: 6.723 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.14e-05/0.5023, allocations: 159.9 kB / 441.9 MB, free: 6.531 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.5025, allocations: 151.7 kB / 442.1 MB, free: 6.375 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.5025, allocations: 25.7 kB / 442.1 MB, free: 6.344 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.5026, allocations: 158.6 kB / 442.3 MB, free: 6.188 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.5027, allocations: 10.72 kB / 442.3 MB, free: 6.18 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-06/0.5027, allocations: 0 / 442.3 MB, free: 6.18 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5028, allocations: 310.8 kB / 442.6 MB, free: 5.867 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.74e-05/0.5028, allocations: 7.938 kB / 442.6 MB, free: 5.859 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.648e-05/0.5029, allocations: 43.75 kB / 442.6 MB, free: 5.805 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.304e-05/0.503, allocations: 8 kB / 442.6 MB, free: 5.797 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.503, allocations: 0 / 442.6 MB, free: 5.797 MB / 331.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001013/0.5031, allocations: 44.84 kB / 442.7 MB, free: 5.75 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.302e-05/0.5031, allocations: 14.64 kB / 442.7 MB, free: 5.738 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.5032, allocations: 1.172 kB / 442.7 MB, free: 5.738 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.318e-05/0.5032, allocations: 0 / 442.7 MB, free: 5.738 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.582e-05/0.5032, allocations: 4 kB / 442.7 MB, free: 5.734 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.199e-06/0.5033, allocations: 0 / 442.7 MB, free: 5.734 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.5034, allocations: 4 kB / 442.7 MB, free: 5.73 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.5034, allocations: 0 / 442.7 MB, free: 5.73 MB / 331.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 () * 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 9.587e-05/0.5035, allocations: 108.9 kB / 442.8 MB, free: 5.617 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.041e-05/0.5036, allocations: 7.906 kB / 442.8 MB, free: 5.609 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.755e-05/0.5036, allocations: 26.78 kB / 442.8 MB, free: 5.586 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.5036, allocations: 0.6562 kB / 442.8 MB, free: 5.586 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.5036, allocations: 0 / 442.8 MB, free: 5.586 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.5037, allocations: 0 / 442.8 MB, free: 5.586 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002604/0.5039, allocations: 154.2 kB / 443 MB, free: 5.398 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.5039, allocations: 0 / 443 MB, free: 5.398 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.361e-05/0.504, allocations: 3.984 kB / 443 MB, free: 5.395 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.504, allocations: 4 kB / 443 MB, free: 5.391 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.504, allocations: 2.062 kB / 443 MB, free: 5.391 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.504, allocations: 0 / 443 MB, free: 5.391 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5041, allocations: 7.953 kB / 443 MB, free: 5.383 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001639/0.5042, allocations: 73.03 kB / 443.1 MB, free: 5.293 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.5044, allocations: 97.03 kB / 443.2 MB, free: 5.18 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.357e-05/0.5044, allocations: 0 / 443.2 MB, free: 5.18 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001258/0.5045, allocations: 7.984 kB / 443.2 MB, free: 5.172 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.926e-05/0.5046, allocations: 3.953 kB / 443.2 MB, free: 5.168 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.5046, allocations: 4.688 kB / 443.2 MB, free: 5.164 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001578/0.5048, allocations: 135.3 kB / 443.3 MB, free: 5.031 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5048, allocations: 0 / 443.3 MB, free: 5.031 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003144/0.5051, allocations: 23.98 kB / 443.4 MB, free: 5.008 MB / 331.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 () * 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.0005188/0.5056, allocations: 167.8 kB / 443.5 MB, free: 4.863 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 9.966e-05/0.5057, allocations: 11.98 kB / 443.5 MB, free: 4.852 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5058, allocations: 0 / 443.5 MB, free: 4.852 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 1.761e-05/0.5058, allocations: 4 kB / 443.5 MB, free: 4.848 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001539/0.506, allocations: 8 kB / 443.5 MB, free: 4.84 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003619/0.5063, allocations: 132.3 kB / 443.7 MB, free: 4.684 MB / 331.1 MB [/var/lib/jenkins1/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]