Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel") translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_trunk_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002748/0.002749, allocations: 199.9 kB / 18.05 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.686/1.686, allocations: 226.5 MB / 245.3 MB, free: 8.137 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009978/0.000998, allocations: 100.5 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003485/0.0003486, allocations: 4 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4029, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001624/0.4046, allocations: 0.9322 MB / 409.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003673/0.4083, allocations: 1.921 MB / 411.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.613e-05/0.4084, allocations: 0 / 411.5 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.119e-05/0.4084, allocations: 3.938 kB / 411.5 MB, free: 24.84 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Examples.mo:279:3-372:24:writable] Warning: Pure function ‘Modelica.Utilities.Examples.readRealParameter‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. Notification: Performance of NFTyping.typeBindings: time 0.001679/0.4101, allocations: 339.2 kB / 411.9 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.542e-05/0.4102, allocations: 4 kB / 411.9 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.653e-05/0.4102, allocations: 11.92 kB / 411.9 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.692e-05/0.4103, allocations: 0.625 kB / 411.9 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.451e-05/0.4104, allocations: 11.92 kB / 411.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.4106, allocations: 8.844 kB / 411.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.4106, allocations: 0 / 411.9 MB, free: 24.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008548/0.4114, allocations: 428.3 kB / 412.3 MB, free: 24.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.207e-05/0.4115, allocations: 7.984 kB / 412.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.432e-05/0.4115, allocations: 34.44 kB / 412.4 MB, free: 24.01 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004418/0.412, allocations: 247.6 kB / 412.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.412, allocations: 1.406 kB / 412.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.918e-06/0.412, allocations: 0 / 412.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.412, allocations: 0 / 412.6 MB, free: 23.77 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005562/0.4126, allocations: 405.7 kB / 413 MB, free: 23.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.753e-05/0.4127, allocations: 8.031 kB / 413 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.556e-05/0.4128, allocations: 80.12 kB / 413.1 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001878/0.413, allocations: 254 kB / 413.3 MB, free: 22.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.177e-05/0.413, allocations: 150.9 kB / 413.5 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.616e-05/0.4131, allocations: 154.7 kB / 413.6 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.745e-05/0.4131, allocations: 107.1 kB / 413.7 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.658e-05/0.4132, allocations: 79.22 kB / 413.8 MB, free: 22.47 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.559e-05/0.4132, allocations: 154.5 kB / 414 MB, free: 22.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.648e-05/0.4133, allocations: 157.4 kB / 414.1 MB, free: 22.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.817e-05/0.4133, allocations: 150.6 kB / 414.3 MB, free: 22.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002781/0.4136, allocations: 449.9 kB / 414.7 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.505e-05/0.4137, allocations: 173.1 kB / 414.9 MB, free: 21.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.065e-05/0.4137, allocations: 84.08 kB / 415 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.4138, allocations: 75.28 kB / 415 MB, free: 21.19 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001905/0.414, allocations: 47.34 kB / 415.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 3.436e-06/0.414, allocations: 0 / 415.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002047/0.4142, allocations: 33.7 kB / 415.1 MB, free: 21.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.4142, allocations: 55.41 kB / 415.2 MB, free: 21.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.96e-05/0.4143, allocations: 101.8 kB / 415.3 MB, free: 20.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.4144, allocations: 25.7 kB / 415.3 MB, free: 20.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.4144, allocations: 92.06 kB / 415.4 MB, free: 20.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.4144, allocations: 4 kB / 415.4 MB, free: 20.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-06/0.4145, allocations: 0 / 415.4 MB, free: 20.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.182e-05/0.4145, allocations: 310.8 kB / 415.7 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.967e-06/0.4146, allocations: 4.125 kB / 415.7 MB, free: 20.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.621e-06/0.4146, allocations: 0 / 415.7 MB, free: 20.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.807e-05/0.4146, allocations: 8.859 kB / 415.7 MB, free: 20.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.4146, allocations: 0 / 415.7 MB, free: 20.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.865e-05/0.4147, allocations: 45.53 kB / 415.7 MB, free: 20.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.4147, allocations: 8 kB / 415.8 MB, free: 20.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.4147, allocations: 3.984 kB / 415.8 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.4148, allocations: 3.938 kB / 415.8 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.598e-05/0.4148, allocations: 8.031 kB / 415.8 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.4148, allocations: 0 / 415.8 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.073e-05/0.4149, allocations: 0 / 415.8 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-06/0.4149, allocations: 0 / 415.8 MB, free: 20.38 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.015e-05/0.415, allocations: 109.8 kB / 415.9 MB, free: 20.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.415, allocations: 7.922 kB / 415.9 MB, free: 20.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.37e-05/0.415, allocations: 3.125 kB / 415.9 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.415, allocations: 4 kB / 415.9 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.415, allocations: 0 / 415.9 MB, free: 20.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.015e-05/0.4151, allocations: 81.11 kB / 416 MB, free: 20.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.4151, allocations: 7.938 kB / 416 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.745e-05/0.4151, allocations: 3.984 kB / 416 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.4152, allocations: 0 / 416 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.933e-05/0.4153, allocations: 108.9 kB / 416.1 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001069/0.4154, allocations: 210.8 kB / 416.3 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.255e-05/0.4154, allocations: 4.062 kB / 416.3 MB, free: 19.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.071e-05/0.4154, allocations: 79.28 kB / 416.4 MB, free: 19.72 MB / 298.7 MB Notification: Performance of Backend: time 6.01e-07/0.4155, allocations: 0 / 416.4 MB, free: 19.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.4172, allocations: 493 kB / 416.9 MB, free: 19.3 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004908/0.4177, allocations: 0.5971 MB / 417.5 MB, free: 18.64 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for J found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: J (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for phi_rel0 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: phi_rel0 (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for w_rel0 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: w_rel0 (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: $whenCondition1 (no alias) protected hideResult initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for file found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: file (no alias) initial: "/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Resources/Data/Utilities/Examples_readRealParameters.txt" no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! Error: Internal error GetVarIndexListByMapping: No Element for J found! Error: Internal error GetVarIndexListByMapping: No Element for phi_rel0 found! Error: Internal error GetVarIndexListByMapping: No Element for w_rel0 found! Error: Internal error GetVarIndexListByMapping: No Element for file found!