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.001347/0.001347, allocations: 115.5 kB / 17.06 MB, free: 5.812 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.001244/0.001244, allocations: 200 kB / 18 MB, free: 4.949 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.467/1.467, allocations: 205.1 MB / 223.9 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.2834/0.2834, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.001357/0.001357, allocations: 75.89 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1086, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003651/0.1123, allocations: 2.277 MB / 0.4995 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001192/0.1135, allocations: 0.6553 MB / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001326/0.1137, allocations: 4 kB / 0.5001 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.1139, allocations: 39.53 kB / 0.5001 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002494/0.1141, allocations: 79.33 kB / 0.5002 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001701/0.1143, allocations: 59.86 kB / 0.5003 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.1146, allocations: 270.8 kB / 0.5005 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.1148, allocations: 76.91 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.1149, allocations: 107.5 kB / 0.5007 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.1151, allocations: 115.5 kB / 0.5008 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.1152, allocations: 20 kB / 0.5008 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.289e-05/0.1152, allocations: 24 kB / 0.5009 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.568e-05/0.1153, allocations: 47.78 kB / 0.5009 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001029/0.1154, allocations: 119.3 kB / 0.501 GB, free: 9.859 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000264/0.1157, allocations: 219.1 kB / 0.5012 GB, free: 9.645 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1157, allocations: 0 / 0.5012 GB, free: 9.645 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1157, allocations: 0 / 0.5012 GB, free: 9.645 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1157, allocations: 0 / 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.0008849/0.1166, allocations: 0.5529 MB / 0.5018 GB, free: 9.043 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.1166, allocations: 11.89 kB / 0.5018 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.1167, allocations: 50.67 kB / 0.5018 GB, free: 8.973 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.1168, allocations: 32.56 kB / 0.5019 GB, free: 8.941 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003957/0.1172, allocations: 270.7 kB / 0.5021 GB, free: 8.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1172, allocations: 16.31 kB / 0.5021 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.182e-05/0.1173, allocations: 16.38 kB / 0.5022 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003792/0.1177, allocations: 179.2 kB / 0.5023 GB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1177, allocations: 3.938 kB / 0.5023 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.438e-05/0.1177, allocations: 8 kB / 0.5023 GB, free: 8.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.1177, allocations: 7.984 kB / 0.5023 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003739/0.1181, allocations: 115.9 kB / 0.5025 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.1192, allocations: 0.6385 MB / 0.5031 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.1194, allocations: 146.3 kB / 0.5032 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.1196, allocations: 76.83 kB / 0.5033 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.1196, allocations: 4 kB / 0.5033 GB, free: 7.355 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.1197, allocations: 34.56 kB / 0.5033 GB, free: 7.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.673e-06/0.1197, allocations: 0 / 0.5033 GB, free: 7.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001129/0.1208, allocations: 0.5406 MB / 0.5039 GB, free: 6.719 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.1208, allocations: 55.41 kB / 0.5039 GB, free: 6.652 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.1211, allocations: 237 kB / 0.5041 GB, free: 6.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.1211, allocations: 29.7 kB / 0.5042 GB, free: 6.375 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.1212, allocations: 152.2 kB / 0.5043 GB, free: 6.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.1213, allocations: 63.02 kB / 0.5044 GB, free: 6.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.1213, allocations: 41.7 kB / 0.5044 GB, free: 6.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1215, allocations: 338.8 kB / 0.5047 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.1216, allocations: 55.91 kB / 0.5048 GB, free: 5.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.1217, allocations: 73.69 kB / 0.5049 GB, free: 5.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.122, allocations: 130 kB / 0.505 GB, free: 5.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.122, allocations: 0 / 0.505 GB, free: 5.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003337/0.1223, allocations: 201.2 kB / 0.5052 GB, free: 5.305 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1224, allocations: 4 kB / 0.5052 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1224, allocations: 0 / 0.5052 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1224, allocations: 4 kB / 0.5052 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003716/0.1228, allocations: 75.88 kB / 0.5052 GB, free: 5.223 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001093/0.1239, allocations: 1.426 MB / 0.5066 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001371/0.124, allocations: 12.02 kB / 0.5067 GB, free: 3.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.124, allocations: 4.156 kB / 0.5067 GB, free: 3.637 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.0001258/0.1242, allocations: 137.8 kB / 0.5068 GB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.086e-05/0.1242, allocations: 23.72 kB / 0.5068 GB, free: 3.469 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003473/0.1246, allocations: 195.6 kB / 0.507 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1246, allocations: 3.984 kB / 0.507 GB, free: 3.266 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1246, allocations: 4 kB / 0.507 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1246, allocations: 3.984 kB / 0.507 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006873/0.1253, allocations: 0.5256 MB / 0.5075 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1253, allocations: 0 / 0.5075 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.1256, allocations: 47.97 kB / 0.5076 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.1256, allocations: 0 / 0.5076 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1256, allocations: 8 kB / 0.5076 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1256, allocations: 0 / 0.5076 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1256, allocations: 0 / 0.5076 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005124/0.1261, allocations: 359.2 kB / 0.5079 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.319e-05/0.1262, allocations: 104.9 kB / 0.508 GB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.948e-05/0.1263, allocations: 4 kB / 0.508 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.1264, allocations: 7.984 kB / 0.508 GB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.1265, allocations: 15.98 kB / 0.508 GB, free: 2.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.1265, allocations: 4 kB / 0.508 GB, free: 2.102 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001435/0.1266, allocations: 172.5 kB / 0.5082 GB, free: 1.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1266, allocations: 0 / 0.5082 GB, free: 1.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.1269, allocations: 48 kB / 0.5083 GB, free: 1.887 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.000713/0.1276, allocations: 0.8683 MB / 0.5091 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004948/0.1281, allocations: 169.2 kB / 0.5093 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1282, allocations: 0 / 0.5093 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001367/0.1283, allocations: 71.91 kB / 0.5093 GB, free: 0.7578 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.1287, allocations: 36.48 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.003142/0.1318, allocations: 2.58 MB / 0.5119 GB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.1322, allocations: 0.7521 MB / 0.5126 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.1323, allocations: 25.52 kB / 0.5126 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001355/0.1324, allocations: 79.41 kB / 0.5127 GB, free: 13.17 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1324, allocations: 4 kB / 0.5127 GB, free: 13.17 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02455/0.157, allocations: 4.856 MB / 0.5175 GB, free: 8.262 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.735/7.892, allocations: 7.984 kB / 0.5175 GB, free: 8.254 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)