Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00158/0.00158, allocations: 103.5 kB / 17.06 MB, free: 6.145 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.001874/0.001874, allocations: 195 kB / 18 MB, free: 5.219 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.37/1.37, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2774/0.2774, allocations: 48.85 MB / 320.1 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.001696/0.001696, allocations: 63.91 kB / 450 MB, free: 9.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1281, allocations: 59.15 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003754/0.1319, allocations: 2.281 MB / 0.4995 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001467/0.1334, allocations: 0.6553 MB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002455/0.1337, allocations: 7.938 kB / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1338, allocations: 31.61 kB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003672/0.1343, allocations: 83.31 kB / 0.5002 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.1345, allocations: 63.8 kB / 0.5003 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000402/0.135, allocations: 266.8 kB / 0.5005 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.1352, allocations: 80.81 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.1354, allocations: 111.5 kB / 0.5007 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002012/0.1356, allocations: 111.5 kB / 0.5008 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.409e-05/0.1356, allocations: 20 kB / 0.5008 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.658e-05/0.1357, allocations: 24 kB / 0.5009 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.063e-05/0.1358, allocations: 47.78 kB / 0.5009 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.1359, allocations: 119.3 kB / 0.501 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.1363, allocations: 223.1 kB / 0.5012 GB, free: 9.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1363, allocations: 0 / 0.5012 GB, free: 9.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1363, allocations: 0 / 0.5012 GB, free: 9.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.1363, allocations: 3.938 kB / 0.5012 GB, free: 9.645 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.0009891/0.1373, allocations: 0.549 MB / 0.5018 GB, free: 9.047 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.1374, allocations: 11.89 kB / 0.5018 GB, free: 9.035 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.797e-05/0.1375, allocations: 54.73 kB / 0.5018 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000148/0.1376, allocations: 28.56 kB / 0.5019 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.138, allocations: 266.7 kB / 0.5021 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.138, allocations: 12.38 kB / 0.5021 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.983e-05/0.1381, allocations: 20.38 kB / 0.5022 GB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000325/0.1384, allocations: 175.2 kB / 0.5023 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.1384, allocations: 3.938 kB / 0.5023 GB, free: 8.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.1385, allocations: 8 kB / 0.5023 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1385, allocations: 4 kB / 0.5023 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002624/0.1387, allocations: 115.9 kB / 0.5025 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009626/0.1397, allocations: 0.6385 MB / 0.5031 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.14, allocations: 142.4 kB / 0.5032 GB, free: 7.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.1401, allocations: 76.83 kB / 0.5033 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.1402, allocations: 11.98 kB / 0.5033 GB, free: 7.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.1402, allocations: 30.56 kB / 0.5033 GB, free: 7.328 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.513e-06/0.1402, allocations: 0 / 0.5033 GB, free: 7.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001148/0.1414, allocations: 0.5483 MB / 0.5039 GB, free: 6.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.1414, allocations: 63.41 kB / 0.5039 GB, free: 6.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003047/0.1417, allocations: 229 kB / 0.5041 GB, free: 6.418 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.1418, allocations: 33.7 kB / 0.5042 GB, free: 6.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.1419, allocations: 148.2 kB / 0.5043 GB, free: 6.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.637e-05/0.142, allocations: 63.02 kB / 0.5044 GB, free: 6.168 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.603e-05/0.1421, allocations: 41.7 kB / 0.5044 GB, free: 6.121 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.1422, allocations: 338.8 kB / 0.5047 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001357/0.1424, allocations: 59.97 kB / 0.5048 GB, free: 5.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.1425, allocations: 73.67 kB / 0.5049 GB, free: 5.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002614/0.1428, allocations: 130 kB / 0.505 GB, free: 5.512 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.1428, allocations: 0 / 0.505 GB, free: 5.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003976/0.1432, allocations: 197.2 kB / 0.5052 GB, free: 5.312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.1432, allocations: 7.984 kB / 0.5052 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.1432, allocations: 0 / 0.5052 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.365e-05/0.1433, allocations: 4 kB / 0.5052 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004116/0.1437, allocations: 67.89 kB / 0.5053 GB, free: 5.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.1451, allocations: 1.429 MB / 0.5066 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001597/0.1453, allocations: 8.031 kB / 0.5067 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.1453, allocations: 8.156 kB / 0.5067 GB, free: 3.645 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001693/0.1455, allocations: 141.8 kB / 0.5068 GB, free: 3.496 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-05/0.1456, allocations: 19.72 kB / 0.5068 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003552/0.146, allocations: 191.6 kB / 0.507 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.146, allocations: 0 / 0.507 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.146, allocations: 4 kB / 0.507 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.146, allocations: 0 / 0.507 GB, free: 3.277 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008018/0.1468, allocations: 0.5295 MB / 0.5075 GB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.1468, allocations: 4 kB / 0.5075 GB, free: 2.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002252/0.1471, allocations: 43.91 kB / 0.5076 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.1471, allocations: 0 / 0.5076 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.1471, allocations: 8 kB / 0.5076 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1471, allocations: 0 / 0.5076 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1471, allocations: 0 / 0.5076 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004959/0.1476, allocations: 355.2 kB / 0.5079 GB, free: 2.273 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.658e-05/0.1477, allocations: 108.8 kB / 0.508 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.953e-05/0.1477, allocations: 8 kB / 0.508 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.1479, allocations: 8 kB / 0.508 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.74e-05/0.148, allocations: 11.98 kB / 0.508 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.403e-06/0.148, allocations: 0 / 0.508 GB, free: 2.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.1481, allocations: 176.5 kB / 0.5082 GB, free: 1.949 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1481, allocations: 0 / 0.5082 GB, free: 1.949 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002867/0.1484, allocations: 44 kB / 0.5083 GB, free: 1.906 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.0007834/0.1492, allocations: 0.876 MB / 0.5091 GB, free: 1.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005414/0.1498, allocations: 169.3 kB / 0.5093 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1498, allocations: 0 / 0.5093 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.1499, allocations: 71.91 kB / 0.5093 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003808/0.1503, allocations: 48.41 kB / 0.5094 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003376/0.1537, allocations: 2.564 MB / 0.5119 GB, free: 14.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.1541, allocations: 0.7521 MB / 0.5126 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001115/0.1542, allocations: 21.53 kB / 0.5126 GB, free: 13.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.1543, allocations: 83.41 kB / 0.5127 GB, free: 13.19 MB / 414.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1543, allocations: 0 / 0.5127 GB, free: 13.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.1786, allocations: 5.059 MB / 0.5177 GB, free: 8.078 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/7.946, allocations: 11.89 kB / 0.5177 GB, free: 8.066 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)