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.001201/0.001201, allocations: 115.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 210.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 55.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.243, allocations: 50.54 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001597/0.2446, allocations: 0.5232 MB / 410.4 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002217/0.2468, allocations: 1.849 MB / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.026e-05/0.2469, allocations: 0 / 412.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002695/0.2496, allocations: 163.2 kB / 412.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.166e-05/0.2497, allocations: 23.92 kB / 412.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002058/0.2499, allocations: 47.86 kB / 412.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.2501, allocations: 75.8 kB / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.791e-05/0.2501, allocations: 0 / 412.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.193e-05/0.2502, allocations: 31.86 kB / 412.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.523e-05/0.2503, allocations: 27.91 kB / 412.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.2503, allocations: 0 / 412.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.604e-05/0.2504, allocations: 15.98 kB / 412.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.529e-05/0.2505, allocations: 11.94 kB / 412.7 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.118e-05/0.2505, allocations: 23.86 kB / 412.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.2507, allocations: 59.78 kB / 412.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2507, allocations: 0 / 412.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2507, allocations: 0 / 412.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.2507, allocations: 4 kB / 412.7 MB, free: 14.74 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.000453/0.2512, allocations: 400.7 kB / 413.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.2512, allocations: 8.031 kB / 413.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.2513, allocations: 8.844 kB / 413.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.2516, allocations: 204.2 kB / 413.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.2516, allocations: 4.375 kB / 413.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.2516, allocations: 4.312 kB / 413.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001404/0.2517, allocations: 82.28 kB / 413.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.241e-06/0.2518, allocations: 0 / 413.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.263e-05/0.2518, allocations: 0 / 413.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2518, allocations: 0 / 413.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.878e-05/0.2518, allocations: 7.938 kB / 413.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003013/0.2521, allocations: 173.7 kB / 413.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.202e-05/0.2522, allocations: 22.58 kB / 413.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.881e-05/0.2522, allocations: 12.78 kB / 413.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-06/0.2522, allocations: 4.062 kB / 413.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.514e-05/0.2522, allocations: 60.2 kB / 413.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.2523, allocations: 0 / 413.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001405/0.2524, allocations: 49.55 kB / 413.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.837e-05/0.2525, allocations: 158.2 kB / 413.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.2526, allocations: 160.7 kB / 414.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.635e-05/0.2526, allocations: 25.7 kB / 414.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.814e-05/0.2527, allocations: 92.14 kB / 414.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.2527, allocations: 7.906 kB / 414.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.2528, allocations: 21.7 kB / 414.2 MB, free: 13 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.704e-05/0.2529, allocations: 318.8 kB / 414.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.422e-05/0.2529, allocations: 3.984 kB / 414.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.725e-05/0.2529, allocations: 40.3 kB / 414.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.639e-05/0.253, allocations: 28.78 kB / 414.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.253, allocations: 0 / 414.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.853e-05/0.2531, allocations: 45.55 kB / 414.7 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.2531, allocations: 14.75 kB / 414.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.948e-06/0.2531, allocations: 0 / 414.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.2531, allocations: 0 / 414.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.083e-05/0.2531, allocations: 7.984 kB / 414.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.2532, allocations: 8.094 kB / 414.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.251e-05/0.2532, allocations: 1.266 kB / 414.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-06/0.2533, allocations: 0 / 414.7 MB, free: 12.52 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 7.834e-05/0.2533, allocations: 117.8 kB / 414.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.14e-05/0.2534, allocations: 11.84 kB / 414.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.273e-05/0.2534, allocations: 19.81 kB / 414.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.2534, allocations: 0 / 414.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.2534, allocations: 0 / 414.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.2534, allocations: 0 / 414.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.2536, allocations: 177.6 kB / 415 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2536, allocations: 0 / 415 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.692e-05/0.2537, allocations: 4 kB / 415 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2537, allocations: 3.938 kB / 415 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.2537, allocations: 0 / 415 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.48e-06/0.2537, allocations: 3.984 kB / 415 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2537, allocations: 7.875 kB / 415 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.2538, allocations: 73.12 kB / 415.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.088e-05/0.2539, allocations: 88.98 kB / 415.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.078e-05/0.2539, allocations: 0 / 415.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.436e-05/0.254, allocations: 8 kB / 415.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.646e-05/0.254, allocations: 3.984 kB / 415.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.254, allocations: 48 / 415.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.644e-05/0.2541, allocations: 125.5 kB / 415.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2541, allocations: 0 / 415.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.2543, allocations: 12 kB / 415.3 MB, free: 11.77 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.0003017/0.2546, allocations: 150 kB / 415.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 8.848e-05/0.2547, allocations: 15.92 kB / 415.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.92e-06/0.2547, allocations: 0 / 415.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.929e-06/0.2548, allocations: 8.062 kB / 415.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001531/0.2549, allocations: 8 kB / 415.5 MB, free: 11.6 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:7733:5-7733:67:writable] Error: Internal error createModelInfo failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]