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.001189/0.001189, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.386/1.386, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001719/0.001719, allocations: 116.8 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.29e-05/2.304e-05, allocations: 4 kB / 304.9 MB, free: 29.79 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07317/0.0732, allocations: 44.51 MB / 349.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3561/0.4293, allocations: 70.91 MB / 420.3 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001885/0.4295, allocations: 67.55 kB / 420.4 MB, free: 11 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.008726/0.4383, allocations: 3.689 MB / 424.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4383, allocations: 6.578 kB / 424.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.4383, allocations: 7.781 kB / 424.1 MB, free: 10.54 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.0002295/0.4386, allocations: 358.1 kB / 424.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.4386, allocations: 7.781 kB / 424.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.173e-05/0.4386, allocations: 8.562 kB / 424.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004896/0.4391, allocations: 359.8 kB / 424.8 MB, free: 9.973 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.4392, allocations: 7.812 kB / 424.8 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.4392, allocations: 3.938 kB / 424.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.4393, allocations: 84.53 kB / 424.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.4393, allocations: 0 / 424.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.4394, allocations: 0 / 424.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.4394, allocations: 0 / 424.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.628e-05/0.4394, allocations: 3.844 kB / 424.9 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002686/0.4397, allocations: 188.4 kB / 425.1 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.522e-05/0.4397, allocations: 22.42 kB / 425.1 MB, free: 9.656 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.746e-05/0.4397, allocations: 15.69 kB / 425.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.761e-06/0.4397, allocations: 0 / 425.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.4398, allocations: 34.31 kB / 425.2 MB, free: 9.605 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 7.31e-07/0.4398, allocations: 0 / 425.2 MB, free: 9.605 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001115/0.4399, allocations: 41.3 kB / 425.2 MB, free: 9.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.4399, allocations: 135.4 kB / 425.4 MB, free: 9.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.4401, allocations: 159.2 kB / 425.5 MB, free: 9.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.4401, allocations: 25.7 kB / 425.5 MB, free: 9.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.226e-05/0.4401, allocations: 93.77 kB / 425.6 MB, free: 9.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.4402, allocations: 7.719 kB / 425.6 MB, free: 9.195 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-06/0.4402, allocations: 0 / 425.6 MB, free: 9.195 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.4402, allocations: 320.6 kB / 425.9 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.4402, allocations: 3.469 kB / 426 MB, free: 8.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.383e-05/0.4403, allocations: 54.8 kB / 426 MB, free: 8.824 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.183e-05/0.4403, allocations: 6.469 kB / 426 MB, free: 8.824 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4403, allocations: 3.844 kB / 426 MB, free: 8.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.889e-05/0.4404, allocations: 47.25 kB / 426.1 MB, free: 8.789 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.4404, allocations: 3.812 kB / 426.1 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.4404, allocations: 96 / 426.1 MB, free: 8.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.4404, allocations: 7.625 kB / 426.1 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.459e-05/0.4405, allocations: 3.938 kB / 426.1 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.4405, allocations: 0 / 426.1 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.956e-05/0.4405, allocations: 11.69 kB / 426.1 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.4406, allocations: 0 / 426.1 MB, free: 8.777 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 4.898e-05/0.4406, allocations: 114.8 kB / 426.2 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.52e-05/0.4406, allocations: 7.719 kB / 426.2 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.283e-05/0.4407, allocations: 3.656 kB / 426.2 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.4407, allocations: 0 / 426.2 MB, free: 8.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.4407, allocations: 7.906 kB / 426.2 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.4407, allocations: 0 / 426.2 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001393/0.4408, allocations: 182.6 kB / 426.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4408, allocations: 0 / 426.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.309e-05/0.4409, allocations: 0 / 426.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.4409, allocations: 7.656 kB / 426.4 MB, free: 8.461 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.4409, allocations: 3.984 kB / 426.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.4409, allocations: 0 / 426.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.4409, allocations: 0 / 426.4 MB, free: 8.457 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.924e-05/0.441, allocations: 85.64 kB / 426.5 MB, free: 8.379 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.93e-05/0.441, allocations: 94.83 kB / 426.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.4411, allocations: 2.953 kB / 426.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.215e-05/0.4411, allocations: 3.75 kB / 426.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.38e-05/0.4411, allocations: 0 / 426.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-06/0.4412, allocations: 0 / 426.6 MB, free: 8.281 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.54e-05/0.4412, allocations: 129.6 kB / 426.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4412, allocations: 0 / 426.7 MB, free: 8.207 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001985/0.4414, allocations: 34.12 kB / 426.8 MB, free: 8.195 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.0003237/0.4418, allocations: 168.3 kB / 426.9 MB, free: 8.059 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.547e-05/0.4419, allocations: 10.34 kB / 426.9 MB, free: 8.059 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4419, allocations: 0 / 426.9 MB, free: 8.059 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.078e-05/0.4419, allocations: 11.28 kB / 426.9 MB, free: 8.055 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001017/0.442, allocations: 7.797 kB / 426.9 MB, free: 8.051 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002184/0.4422, allocations: 103.7 kB / 427 MB, free: 7.969 MB / 298.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]