Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.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.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001764/0.001764, allocations: 178.2 kB / 17.39 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.333/2.333, allocations: 205.4 MB / 223.5 MB, free: 9.012 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.001309/0.001309, allocations: 97 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004789/0.0004789, allocations: 8 kB / 328.2 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4997/0.5002, allocations: 47.58 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.00202/0.5023, allocations: 0.912 MB / 376.7 MB, free: 44.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00465/0.507, allocations: 1.872 MB / 378.5 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.141e-05/0.5071, allocations: 0 / 378.5 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/0.5071, allocations: 7.984 kB / 378.5 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001758/0.5089, allocations: 315.7 kB / 378.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.966e-05/0.5089, allocations: 5.094 kB / 378.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.945e-05/0.509, allocations: 7.844 kB / 378.9 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.853e-05/0.5091, allocations: 1.281 kB / 378.9 MB, free: 43.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.222e-05/0.5092, allocations: 18.12 kB / 378.9 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.5094, allocations: 6.156 kB / 378.9 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.5094, allocations: 0 / 378.9 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.5105, allocations: 397 kB / 379.3 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.833e-05/0.5105, allocations: 1.25 kB / 379.3 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.353e-05/0.5106, allocations: 28.39 kB / 379.3 MB, free: 42.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005165/0.5111, allocations: 230.4 kB / 379.5 MB, free: 42.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.087e-05/0.5111, allocations: 1.062 kB / 379.5 MB, free: 42.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.838e-06/0.5111, allocations: 0 / 379.5 MB, free: 42.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.5111, allocations: 0 / 379.5 MB, free: 42.67 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.0006635/0.5118, allocations: 397.6 kB / 379.9 MB, free: 42.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001274/0.5119, allocations: 8.438 kB / 379.9 MB, free: 42.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.512, allocations: 77.44 kB / 380 MB, free: 42.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.5123, allocations: 249.7 kB / 380.2 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.6e-05/0.5124, allocations: 154.9 kB / 380.4 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.111e-05/0.5125, allocations: 163.7 kB / 380.5 MB, free: 41.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001069/0.5126, allocations: 101 kB / 380.6 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.827e-05/0.5127, allocations: 76.5 kB / 380.7 MB, free: 41.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001099/0.5128, allocations: 150.6 kB / 380.9 MB, free: 41.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.86e-05/0.5129, allocations: 155.7 kB / 381 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.363e-05/0.513, allocations: 158.5 kB / 381.2 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004052/0.5134, allocations: 444.2 kB / 381.6 MB, free: 40.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001166/0.5135, allocations: 170.4 kB / 381.8 MB, free: 40.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.577e-05/0.5136, allocations: 89.14 kB / 381.9 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.5136, allocations: 79.28 kB / 381.9 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002358/0.5139, allocations: 47.89 kB / 382 MB, free: 40.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 3.326e-06/0.5139, allocations: 0 / 382 MB, free: 40.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002067/0.5141, allocations: 34.12 kB / 382 MB, free: 40.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.5142, allocations: 52.47 kB / 382.1 MB, free: 39.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.5143, allocations: 103.6 kB / 382.2 MB, free: 39.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.5143, allocations: 26.86 kB / 382.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.67e-05/0.5144, allocations: 89.06 kB / 382.3 MB, free: 39.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.208e-05/0.5144, allocations: 4 kB / 382.3 MB, free: 39.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-06/0.5144, allocations: 0 / 382.3 MB, free: 39.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.5146, allocations: 312 kB / 382.6 MB, free: 39.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.14e-05/0.5146, allocations: 0.9688 kB / 382.6 MB, free: 39.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.937e-06/0.5146, allocations: 0.9688 kB / 382.6 MB, free: 39.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.106e-05/0.5147, allocations: 15.8 kB / 382.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5147, allocations: 0 / 382.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.809e-05/0.5148, allocations: 42.67 kB / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.5148, allocations: 9.328 kB / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.5148, allocations: 0 / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.5148, allocations: 0.9375 kB / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.402e-05/0.5149, allocations: 0 / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.5149, allocations: 1.031 kB / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.613e-05/0.5149, allocations: 0 / 382.7 MB, free: 39.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.37e-05/0.5149, allocations: 1.062 kB / 382.7 MB, free: 39.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 0.0001009/0.515, allocations: 112.8 kB / 382.8 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.149e-05/0.5151, allocations: 5.062 kB / 382.8 MB, free: 39.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.5151, allocations: 8.641 kB / 382.8 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.5151, allocations: 3.984 kB / 382.8 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.5151, allocations: 3.938 kB / 382.8 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.557e-05/0.5152, allocations: 78.52 kB / 382.9 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.218e-05/0.5152, allocations: 1.375 kB / 382.9 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.216e-05/0.5152, allocations: 0 / 382.9 MB, free: 39.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.891e-05/0.5153, allocations: 4 kB / 382.9 MB, free: 39.14 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001066/0.5154, allocations: 121.4 kB / 383 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001588/0.5155, allocations: 208.5 kB / 383.2 MB, free: 38.81 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.25e-05/0.5156, allocations: 2.438 kB / 383.2 MB, free: 38.81 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.384e-05/0.5156, allocations: 83.08 kB / 383.3 MB, free: 38.73 MB / 298.7 MB Notification: Performance of Backend: time 8.92e-07/0.5156, allocations: 0 / 383.3 MB, free: 38.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.5174, allocations: 456.1 kB / 383.7 MB, free: 38.47 MB / 298.7 MB Notification: Performance of SimCode: time 0.0006736/0.5181, allocations: 0.595 MB / 384.3 MB, free: 37.85 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 3.2.3+maint.om/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!