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.001346/0.001346, allocations: 107.9 kB / 17.74 MB, free: 5.363 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.001352/0.001352, allocations: 179.1 kB / 18.66 MB, free: 4.445 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.335/1.335, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.258/0.258, allocations: 48.84 MB / 320.7 MB, free: 11.02 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.00162/0.00162, allocations: 75.88 kB / 451.2 MB, free: 8.566 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1125, allocations: 59.15 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.003688/0.1162, allocations: 2.65 MB / 0.501 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.1177, allocations: 0.7526 MB / 0.5017 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002894/0.118, allocations: 4 kB / 0.5017 GB, free: 9.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001881/0.1182, allocations: 51.41 kB / 0.5018 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003948/0.1186, allocations: 115 kB / 0.5019 GB, free: 9.688 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000252/0.1189, allocations: 79.83 kB / 0.5019 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004657/0.1194, allocations: 398.2 kB / 0.5023 GB, free: 9.219 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001912/0.1196, allocations: 89.56 kB / 0.5024 GB, free: 9.129 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002402/0.1198, allocations: 155.3 kB / 0.5026 GB, free: 8.977 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002445/0.1201, allocations: 167.2 kB / 0.5027 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.309e-05/0.1201, allocations: 24 kB / 0.5027 GB, free: 8.789 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.759e-05/0.1202, allocations: 31.94 kB / 0.5028 GB, free: 8.758 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.1203, allocations: 63.75 kB / 0.5028 GB, free: 8.695 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.1205, allocations: 175 kB / 0.503 GB, free: 8.523 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003216/0.1208, allocations: 326.7 kB / 0.5033 GB, free: 8.203 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1208, allocations: 0 / 0.5033 GB, free: 8.203 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1208, allocations: 3.938 kB / 0.5033 GB, free: 8.199 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.1208, allocations: 0 / 0.5033 GB, free: 8.199 MB / 398.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.001006/0.1218, allocations: 0.662 MB / 0.504 GB, free: 7.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.1219, allocations: 11.89 kB / 0.504 GB, free: 7.477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.122, allocations: 44.41 kB / 0.504 GB, free: 7.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.1224, allocations: 324 kB / 0.5043 GB, free: 7.082 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.1225, allocations: 16.81 kB / 0.5043 GB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.654e-05/0.1225, allocations: 24.38 kB / 0.5044 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004008/0.1229, allocations: 239 kB / 0.5046 GB, free: 6.793 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.123, allocations: 7.938 kB / 0.5046 GB, free: 6.785 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.302e-05/0.123, allocations: 15.98 kB / 0.5046 GB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.205e-06/0.123, allocations: 8 kB / 0.5046 GB, free: 6.762 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000357/0.1234, allocations: 177.6 kB / 0.5048 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001116/0.1245, allocations: 0.8593 MB / 0.5056 GB, free: 5.664 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000315/0.1248, allocations: 183.5 kB / 0.5058 GB, free: 5.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.125, allocations: 104.8 kB / 0.5059 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.125, allocations: 7.938 kB / 0.5059 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.1251, allocations: 38.56 kB / 0.5059 GB, free: 5.316 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.292e-06/0.1251, allocations: 0 / 0.5059 GB, free: 5.316 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.001612/0.1267, allocations: 0.7435 MB / 0.5067 GB, free: 4.523 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.491e-05/0.1267, allocations: 59.39 kB / 0.5067 GB, free: 4.453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.127, allocations: 292.6 kB / 0.507 GB, free: 4.152 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.1271, allocations: 33.7 kB / 0.507 GB, free: 4.113 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.1272, allocations: 184.5 kB / 0.5072 GB, free: 3.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.999e-05/0.1273, allocations: 94.64 kB / 0.5073 GB, free: 3.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/0.1273, allocations: 57.61 kB / 0.5074 GB, free: 3.773 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1275, allocations: 338.8 kB / 0.5077 GB, free: 3.434 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.1276, allocations: 79.95 kB / 0.5078 GB, free: 3.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.1278, allocations: 102.8 kB / 0.5079 GB, free: 3.246 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003332/0.1282, allocations: 192.2 kB / 0.508 GB, free: 3.051 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1282, allocations: 0 / 0.508 GB, free: 3.051 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005982/0.1288, allocations: 322.9 kB / 0.5084 GB, free: 2.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.1288, allocations: 11.91 kB / 0.5084 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1288, allocations: 4.062 kB / 0.5084 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002578/0.1291, allocations: 52.81 kB / 0.5084 GB, free: 2.656 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.1294, allocations: 75.89 kB / 0.5085 GB, free: 2.582 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002222/0.1317, allocations: 3.032 MB / 0.5115 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.1319, allocations: 16.05 kB / 0.5115 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.032e-05/0.1319, allocations: 15.94 kB / 0.5115 GB, free: 15.24 MB / 414.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.000135/0.132, allocations: 141.7 kB / 0.5116 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.718e-05/0.1321, allocations: 35.53 kB / 0.5117 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004345/0.1325, allocations: 261.3 kB / 0.5119 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1325, allocations: 4 kB / 0.5119 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.162e-06/0.1325, allocations: 0 / 0.5119 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1326, allocations: 0 / 0.5119 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000842/0.1334, allocations: 0.6628 MB / 0.5126 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1334, allocations: 4 kB / 0.5126 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003029/0.1337, allocations: 63.91 kB / 0.5126 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.1337, allocations: 11.94 kB / 0.5126 GB, free: 13.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.1338, allocations: 7.938 kB / 0.5126 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.145e-06/0.1338, allocations: 4 kB / 0.5126 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1338, allocations: 0 / 0.5126 GB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006191/0.1344, allocations: 444.4 kB / 0.5131 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.863e-05/0.1345, allocations: 124.8 kB / 0.5132 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.987e-05/0.1346, allocations: 11.94 kB / 0.5132 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001927/0.1348, allocations: 15.92 kB / 0.5132 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.901e-05/0.1348, allocations: 19.92 kB / 0.5132 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.1348, allocations: 4 kB / 0.5132 GB, free: 13.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.1351, allocations: 219.1 kB / 0.5134 GB, free: 13.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1351, allocations: 0 / 0.5134 GB, free: 13.12 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003192/0.1354, allocations: 68 kB / 0.5135 GB, free: 13.05 MB / 414.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 0.0001028/0.1355, allocations: 99.25 kB / 0.5136 GB, free: 12.95 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007324/0.1362, allocations: 354.4 kB / 0.5139 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.1363, allocations: 0 / 0.5139 GB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.1364, allocations: 112 kB / 0.514 GB, free: 12.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.1369, allocations: 53.06 kB / 0.5141 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.1385, allocations: 0.9405 MB / 0.515 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.1388, allocations: 0.7837 MB / 0.5158 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.989e-05/0.1389, allocations: 23.44 kB / 0.5158 GB, free: 10.61 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1389, allocations: 4 kB / 0.5158 GB, free: 10.61 MB / 414.1 MB Notification: Performance of Templates: time 0.007358/0.1462, allocations: 4.767 MB / 0.5205 GB, free: 5.828 MB / 414.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 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)