Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_trunk_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001676/0.001676, allocations: 113.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00197/0.00197, allocations: 212.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.109/2.109, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 63.91 kB / 359.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3853/0.3874, allocations: 50.54 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001872/0.3893, allocations: 0.516 MB / 410.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002569/0.3919, allocations: 1.85 MB / 412.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.602e-05/0.392, allocations: 0 / 412.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.05572/0.4477, allocations: 163.3 kB / 412.4 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001179/0.4479, allocations: 27.95 kB / 412.5 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.4483, allocations: 43.88 kB / 412.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.4485, allocations: 67.81 kB / 412.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.273e-05/0.4486, allocations: 4 kB / 412.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.865e-05/0.4487, allocations: 31.78 kB / 412.6 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.4488, allocations: 27.91 kB / 412.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.4489, allocations: 4 kB / 412.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.122e-05/0.4489, allocations: 16 kB / 412.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.215e-05/0.449, allocations: 15.91 kB / 412.7 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.376e-05/0.4491, allocations: 23.88 kB / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003303/0.4495, allocations: 55.8 kB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.4495, allocations: 0 / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4495, allocations: 0 / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.4495, allocations: 4 kB / 412.7 MB, free: 14.8 MB / 334.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.0008553/0.4504, allocations: 400.7 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.123e-05/0.4505, allocations: 8.031 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.163e-05/0.4506, allocations: 12.78 kB / 413.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.4511, allocations: 212.2 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.4511, allocations: 384 / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.56e-05/0.4512, allocations: 4.375 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.4515, allocations: 70.3 kB / 413.4 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.4515, allocations: 0 / 413.4 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.851e-05/0.4516, allocations: 8 kB / 413.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.4516, allocations: 0 / 413.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.87e-05/0.4516, allocations: 3.938 kB / 413.4 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007241/0.4524, allocations: 181.7 kB / 413.6 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.99e-05/0.4525, allocations: 18.58 kB / 413.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.577e-05/0.4525, allocations: 8.922 kB / 413.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.4526, allocations: 0 / 413.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001018/0.4527, allocations: 64.14 kB / 413.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.4527, allocations: 0 / 413.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.000301/0.453, allocations: 53.53 kB / 413.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000197/0.4532, allocations: 162.2 kB / 413.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003319/0.4536, allocations: 156.5 kB / 414.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.4536, allocations: 25.7 kB / 414.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.774e-05/0.4537, allocations: 96.12 kB / 414.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.4538, allocations: 3.906 kB / 414.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.068e-05/0.4539, allocations: 17.72 kB / 414.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001947/0.4541, allocations: 319 kB / 414.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.892e-05/0.4541, allocations: 8 kB / 414.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.629e-05/0.4542, allocations: 44.28 kB / 414.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.979e-05/0.4543, allocations: 12.8 kB / 414.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4543, allocations: 0 / 414.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001299/0.4545, allocations: 53.59 kB / 414.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.4545, allocations: 12.03 kB / 414.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.4546, allocations: 0 / 414.7 MB, free: 12.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.343e-05/0.4546, allocations: 3.938 kB / 414.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.317e-05/0.4547, allocations: 4.047 kB / 414.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.4547, allocations: 0 / 414.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.4548, allocations: 9.25 kB / 414.7 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.4548, allocations: 0 / 414.7 MB, free: 12.58 MB / 334.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 0.000148/0.455, allocations: 125.8 kB / 414.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.455, allocations: 11.84 kB / 414.8 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.005e-05/0.4551, allocations: 15.83 kB / 414.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.4551, allocations: 0 / 414.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.4551, allocations: 0 / 414.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.4551, allocations: 0 / 414.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002535/0.4554, allocations: 177.6 kB / 415 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.4554, allocations: 3.938 kB / 415 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.046e-05/0.4555, allocations: 4 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-06/0.4555, allocations: 3.938 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.4555, allocations: 0 / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.4555, allocations: 0 / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4555, allocations: 4 kB / 415 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001737/0.4557, allocations: 69.12 kB / 415.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.028e-05/0.4558, allocations: 92.92 kB / 415.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.4558, allocations: 7.984 kB / 415.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.2e-05/0.4559, allocations: 0 / 415.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.03e-05/0.4559, allocations: 4 kB / 415.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-06/0.456, allocations: 0 / 415.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001417/0.4561, allocations: 121.6 kB / 415.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4561, allocations: 4 kB / 415.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003494/0.4565, allocations: 12 kB / 415.3 MB, free: 11.84 MB / 334.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.0004741/0.457, allocations: 163.4 kB / 415.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001131/0.4571, allocations: 8 kB / 415.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.4571, allocations: 0 / 415.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.117e-05/0.4571, allocations: 4 kB / 415.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001696/0.4573, allocations: 11.98 kB / 415.5 MB, free: 11.66 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:7735:5-7735:67:writable] Error: Internal error createModelInfo failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:804:5-804:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]