Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical6,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 112 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009629/0.0009629, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.266/1.266, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2604/0.2604, allocations: 48.84 MB / 320.7 MB, free: 11.04 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 67.58 kB / 391.5 MB, free: 48.62 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08945/0.09094, allocations: 59.16 MB / 450.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.00394/0.09492, allocations: 2.952 MB / 453.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.0962, allocations: 0.8112 MB / 454.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.09636, allocations: 11.88 kB / 454.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.09654, allocations: 59.33 kB / 454.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003198/0.09686, allocations: 126.9 kB / 454.6 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002518/0.09713, allocations: 119.8 kB / 454.8 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006538/0.09779, allocations: 490.3 kB / 455.2 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002947/0.0981, allocations: 132.1 kB / 455.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.09833, allocations: 191.2 kB / 455.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.0986, allocations: 214.9 kB / 455.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.125e-05/0.09866, allocations: 32 kB / 455.8 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.566e-05/0.09875, allocations: 36 kB / 455.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.621e-05/0.09883, allocations: 91.55 kB / 455.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.09902, allocations: 210.8 kB / 456.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004178/0.09944, allocations: 418.3 kB / 456.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.09946, allocations: 0 / 456.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.09946, allocations: 0 / 456.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.09948, allocations: 0 / 456.5 MB, free: 3.16 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001273/0.1008, allocations: 0.7516 MB / 457.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1008, allocations: 8.031 kB / 457.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.1009, allocations: 60.38 kB / 457.3 MB, free: 2.293 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004436/0.1014, allocations: 358.1 kB / 457.7 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.1014, allocations: 21.03 kB / 457.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.1015, allocations: 36.28 kB / 457.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.1019, allocations: 305.6 kB / 458 MB, free: 1.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.102, allocations: 4 kB / 458.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.102, allocations: 8 kB / 458.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.102, allocations: 8 kB / 458.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003709/0.1024, allocations: 206.1 kB / 458.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.104, allocations: 1.108 MB / 459.4 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003889/0.1044, allocations: 247 kB / 459.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000202/0.1046, allocations: 116.8 kB / 459.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.1046, allocations: 4 kB / 459.7 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.1046, allocations: 38.56 kB / 459.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.1047, allocations: 0 / 459.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001646/0.1063, allocations: 0.9371 MB / 460.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.1064, allocations: 59.39 kB / 460.8 MB, free: 14.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003429/0.1067, allocations: 353.7 kB / 461.1 MB, free: 14.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1067, allocations: 33.7 kB / 461.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1069, allocations: 212.3 kB / 461.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.513e-05/0.107, allocations: 122.2 kB / 461.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.739e-05/0.1071, allocations: 66.06 kB / 461.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1072, allocations: 354.7 kB / 461.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.1074, allocations: 88.7 kB / 462 MB, free: 13.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.1076, allocations: 129.7 kB / 462.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/0.1079, allocations: 243.8 kB / 462.3 MB, free: 13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.108, allocations: 4 kB / 462.3 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008804/0.1088, allocations: 421.2 kB / 462.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.1089, allocations: 4 kB / 462.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.1089, allocations: 0 / 462.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005655/0.1094, allocations: 124.8 kB / 462.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004315/0.1099, allocations: 91.88 kB / 463 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/0.113, allocations: 3.333 MB / 466.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002146/0.1132, allocations: 15.92 kB / 466.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.1132, allocations: 12 kB / 466.3 MB, free: 8.711 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001534/0.1134, allocations: 165.6 kB / 466.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.426e-05/0.1135, allocations: 43.44 kB / 466.5 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004758/0.114, allocations: 298 kB / 466.8 MB, free: 8.199 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.114, allocations: 4 kB / 466.8 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.114, allocations: 3.938 kB / 466.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.114, allocations: 7.969 kB / 466.8 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009694/0.115, allocations: 0.7489 MB / 467.6 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.828e-06/0.115, allocations: 3.938 kB / 467.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003979/0.1154, allocations: 71.91 kB / 467.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1154, allocations: 4 kB / 467.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.1154, allocations: 7.984 kB / 467.7 MB, free: 7.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1154, allocations: 4 kB / 467.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1154, allocations: 0 / 467.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006385/0.1161, allocations: 0.492 MB / 468.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.1162, allocations: 128.6 kB / 468.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.1163, allocations: 11.98 kB / 468.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1165, allocations: 8 kB / 468.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.107e-05/0.1166, allocations: 15.97 kB / 468.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.1166, allocations: 12 kB / 468.3 MB, free: 6.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002507/0.1168, allocations: 255.2 kB / 468.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1168, allocations: 0 / 468.6 MB, free: 6.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.1172, allocations: 92 kB / 468.7 MB, free: 6.25 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt,torqueGen_a.y,torqueGen_b.y) * 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 (34): * Single equations (assignments): 34 * 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 9.47e-05/0.1173, allocations: 103.2 kB / 468.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008557/0.1182, allocations: 442.9 kB / 469.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1182, allocations: 0 / 469.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002035/0.1184, allocations: 135.6 kB / 469.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004694/0.1189, allocations: 90.88 kB / 469.4 MB, free: 5.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.1205, allocations: 1.062 MB / 470.5 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.1209, allocations: 0.8237 MB / 471.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.121, allocations: 38.89 kB / 471.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.1212, allocations: 39.42 kB / 471.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1212, allocations: 0 / 471.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of Templates: time 0.008607/0.1298, allocations: 4.522 MB / 475.9 MB, free: 14.94 MB / 366.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)