Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.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.TestElectrical5,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical5,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 110.6 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.001051/0.001051, 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.301/1.301, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2617/0.2617, allocations: 48.84 MB / 320.7 MB, free: 11.03 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.001494/0.001494, allocations: 67.11 kB / 391.5 MB, free: 48.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09373/0.09524, allocations: 59.16 MB / 450.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003767/0.09906, allocations: 2.648 MB / 453.3 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.1003, allocations: 0.7487 MB / 454.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.1005, allocations: 4 kB / 454.1 MB, free: 5.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.1007, allocations: 47.45 kB / 454.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.101, allocations: 119 kB / 454.2 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001907/0.1012, allocations: 79.83 kB / 454.3 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.1016, allocations: 406.1 kB / 454.7 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1018, allocations: 77.59 kB / 454.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.102, allocations: 159.3 kB / 454.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1022, allocations: 155.2 kB / 455.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.09e-05/0.1023, allocations: 24 kB / 455.1 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.417e-05/0.1023, allocations: 32 kB / 455.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.332e-05/0.1024, allocations: 71.62 kB / 455.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.1026, allocations: 175 kB / 455.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003261/0.1029, allocations: 318.7 kB / 455.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1029, allocations: 4 kB / 455.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1029, allocations: 0 / 455.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1029, allocations: 0 / 455.7 MB, free: 3.969 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001032/0.104, allocations: 0.6581 MB / 456.4 MB, free: 3.262 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.104, allocations: 19.88 kB / 456.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.1042, allocations: 44.41 kB / 456.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000442/0.1046, allocations: 319.9 kB / 456.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/0.1046, allocations: 20.81 kB / 456.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.1047, allocations: 28.38 kB / 456.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.1051, allocations: 239 kB / 457 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.1051, allocations: 0 / 457 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.1051, allocations: 12 kB / 457 MB, free: 2.543 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.1052, allocations: 4 kB / 457 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003773/0.1055, allocations: 181.6 kB / 457.2 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.1067, allocations: 0.8555 MB / 458.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003154/0.107, allocations: 194.5 kB / 458.3 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001898/0.1072, allocations: 108.8 kB / 458.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1073, allocations: 8 kB / 458.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.1073, allocations: 30.56 kB / 458.4 MB, free: 1.082 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.684e-06/0.1073, allocations: 4 kB / 458.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.001331/0.1086, allocations: 0.7461 MB / 459.2 MB, free: 292 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.1087, allocations: 55.41 kB / 459.2 MB, free: 224 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.109, allocations: 300.6 kB / 459.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.109, allocations: 29.7 kB / 459.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1092, allocations: 184.5 kB / 459.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.378e-05/0.1092, allocations: 90.66 kB / 459.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-05/0.1093, allocations: 57.61 kB / 459.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1094, allocations: 346.8 kB / 460.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001649/0.1096, allocations: 71.95 kB / 460.3 MB, free: 15.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.1098, allocations: 118.6 kB / 460.4 MB, free: 15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.1102, allocations: 188.2 kB / 460.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1102, allocations: 0 / 460.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006219/0.1108, allocations: 322.9 kB / 460.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.1108, allocations: 4 kB / 460.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1108, allocations: 0 / 460.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.1111, allocations: 64.81 kB / 461 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.1115, allocations: 75.95 kB / 461 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002361/0.1139, allocations: 3.024 MB / 464 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000206/0.1141, allocations: 20 kB / 464.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.1141, allocations: 11.94 kB / 464.1 MB, free: 11 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (30): * Single equations (assignments): 28 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001413/0.1143, allocations: 145.8 kB / 464.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.1143, allocations: 31.53 kB / 464.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004712/0.1148, allocations: 273.4 kB / 464.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1148, allocations: 4 kB / 464.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-06/0.1148, allocations: 0 / 464.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1148, allocations: 4 kB / 464.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000908/0.1157, allocations: 0.6627 MB / 465.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.1158, allocations: 0 / 465.2 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003244/0.1161, allocations: 63.91 kB / 465.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.1161, allocations: 0 / 465.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.1161, allocations: 15.92 kB / 465.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1161, allocations: 0 / 465.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1161, allocations: 4 kB / 465.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006303/0.1168, allocations: 440.2 kB / 465.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.1169, allocations: 120.8 kB / 465.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.894e-05/0.117, allocations: 8.188 kB / 465.8 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.1172, allocations: 11.98 kB / 465.8 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.1172, allocations: 31.97 kB / 465.9 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.1172, allocations: 4 kB / 465.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002053/0.1174, allocations: 215.1 kB / 466.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1175, allocations: 0 / 466.1 MB, free: 8.891 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003293/0.1178, allocations: 72 kB / 466.2 MB, free: 8.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (gen_a.phi,gen_a.omega_m,gen_a.omega_e_filt,gen_b.phi,gen_b.omega_m,gen_b.omega_e_filt) * 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 (28): * Single equations (assignments): 28 * 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.769e-05/0.1179, allocations: 103.1 kB / 466.3 MB, free: 8.711 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008369/0.1187, allocations: 370.6 kB / 466.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.1188, allocations: 4 kB / 466.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001967/0.119, allocations: 107.8 kB / 466.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.1194, allocations: 58.38 kB / 466.8 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.1209, allocations: 0.9193 MB / 467.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.1213, allocations: 0.7915 MB / 468.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.1214, allocations: 34.95 kB / 468.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.383e-05/0.1215, allocations: 23.44 kB / 468.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1215, allocations: 0 / 468.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of Templates: time 0.007237/0.1287, allocations: 3.46 MB / 472 MB, free: 2.887 MB / 350.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.makefile (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.sim & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)