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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.001287/0.001287, allocations: 172.7 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008727/0.0008727, allocations: 82.66 kB / 268 MB, free: 14.09 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.501e-05/2.504e-05, allocations: 0 / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1098, allocations: 47.57 MB / 370 MB, free: 1.719 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3554/0.4652, allocations: 75.31 MB / 445.3 MB, free: 1.906 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001946/0.4654, allocations: 65.44 kB / 445.4 MB, free: 1.875 MB / 314.7 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.01006/0.4755, allocations: 3.717 MB / 449.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.4755, allocations: 0 / 449.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.046e-05/0.4755, allocations: 4 kB / 449.1 MB, free: 14.94 MB / 330.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.0003357/0.4759, allocations: 387.1 kB / 449.5 MB, free: 14.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.4759, allocations: 12.03 kB / 449.5 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.662e-05/0.476, allocations: 15.83 kB / 449.5 MB, free: 14.49 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005868/0.4766, allocations: 354.9 kB / 449.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.4766, allocations: 3.953 kB / 449.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.03e-05/0.4766, allocations: 7.375 kB / 449.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001386/0.4768, allocations: 77.92 kB / 449.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.4768, allocations: 0 / 449.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.415e-05/0.4768, allocations: 0 / 449.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.4768, allocations: 0 / 449.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.031e-05/0.4769, allocations: 4 kB / 449.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003473/0.4772, allocations: 187.7 kB / 450.1 MB, free: 13.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.624e-05/0.4773, allocations: 14.64 kB / 450.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.887e-05/0.4773, allocations: 16.81 kB / 450.2 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.158e-06/0.4773, allocations: 3.938 kB / 450.2 MB, free: 13.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.4773, allocations: 60.27 kB / 450.2 MB, free: 13.67 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.4774, allocations: 0 / 450.2 MB, free: 13.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001406/0.4775, allocations: 40.94 kB / 450.3 MB, free: 13.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.835e-05/0.4776, allocations: 154.2 kB / 450.4 MB, free: 13.44 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.4778, allocations: 158.6 kB / 450.6 MB, free: 13.29 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/0.4778, allocations: 29.73 kB / 450.6 MB, free: 13.26 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.324e-05/0.4778, allocations: 94.25 kB / 450.7 MB, free: 13.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.4779, allocations: 11.22 kB / 450.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.299e-05/0.4779, allocations: 0 / 450.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.478, allocations: 322.2 kB / 451 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.491e-05/0.478, allocations: 7.984 kB / 451 MB, free: 12.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.959e-05/0.4781, allocations: 43.8 kB / 451.1 MB, free: 12.78 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.628e-05/0.4781, allocations: 12.05 kB / 451.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4781, allocations: 0 / 451.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.942e-05/0.4782, allocations: 45.56 kB / 451.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/0.4782, allocations: 8 kB / 451.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.4782, allocations: 0 / 451.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.4783, allocations: 0 / 451.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.173e-05/0.4783, allocations: 4 kB / 451.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.4783, allocations: 0 / 451.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.772e-05/0.4784, allocations: 15.39 kB / 451.1 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.4784, allocations: 3.938 kB / 451.2 MB, free: 12.69 MB / 330.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 0.0001271/0.4785, allocations: 105 kB / 451.3 MB, free: 12.58 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.4786, allocations: 11.86 kB / 451.3 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.4786, allocations: 15.3 kB / 451.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.4786, allocations: 0 / 451.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4786, allocations: 0 / 451.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.4786, allocations: 0 / 451.3 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001947/0.4788, allocations: 176.8 kB / 451.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.4788, allocations: 4 kB / 451.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.526e-05/0.4789, allocations: 3.438 kB / 451.5 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.4789, allocations: 3.953 kB / 451.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.4789, allocations: 4 kB / 451.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.4789, allocations: 0 / 451.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.4789, allocations: 0 / 451.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001198/0.479, allocations: 72.41 kB / 451.5 MB, free: 12.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.385e-05/0.4791, allocations: 97.11 kB / 451.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.4792, allocations: 11.44 kB / 451.6 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.376e-05/0.4792, allocations: 11.92 kB / 451.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.36e-05/0.4793, allocations: 3.938 kB / 451.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-06/0.4793, allocations: 0 / 451.7 MB, free: 12.1 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.4794, allocations: 135.5 kB / 451.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4794, allocations: 0 / 451.8 MB, free: 11.98 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.4796, allocations: 20 kB / 451.8 MB, free: 11.96 MB / 330.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.0003476/0.48, allocations: 170.1 kB / 452 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.786e-05/0.48, allocations: 11.25 kB / 452 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4801, allocations: 64 / 452 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.557e-06/0.4801, allocations: 8 kB / 452 MB, free: 11.78 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001104/0.4802, allocations: 9.688 kB / 452 MB, free: 11.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002606/0.4805, allocations: 114 kB / 452.1 MB, free: 11.64 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:744:5-744:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]