Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.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.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical7,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7",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.001277/0.001278, allocations: 106.6 kB / 17.06 MB, free: 6.098 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.001256/0.001256, allocations: 193.4 kB / 18 MB, free: 5.172 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.362/1.362, 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.2937/0.2937, allocations: 48.85 MB / 320.1 MB, free: 11 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.002223/0.002223, allocations: 72.33 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1165, allocations: 59.16 MB / 0.4973 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical7): time 0.004444/0.1209, allocations: 3.123 MB / 0.5003 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001491/0.1225, allocations: 0.8265 MB / 0.5011 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.1226, allocations: 8 kB / 0.5011 GB, free: 9.766 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.1228, allocations: 67.25 kB / 0.5012 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003549/0.1232, allocations: 142.8 kB / 0.5013 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.1235, allocations: 123.8 kB / 0.5014 GB, free: 9.438 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005925/0.1241, allocations: 0.5217 MB / 0.502 GB, free: 8.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002805/0.1244, allocations: 153.5 kB / 0.5021 GB, free: 8.758 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1246, allocations: 195.2 kB / 0.5023 GB, free: 8.566 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003091/0.1249, allocations: 226.8 kB / 0.5025 GB, free: 8.344 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.275e-05/0.125, allocations: 36 kB / 0.5025 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.1251, allocations: 36 kB / 0.5026 GB, free: 8.273 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-05/0.1252, allocations: 99.59 kB / 0.5027 GB, free: 8.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000243/0.1255, allocations: 226.6 kB / 0.5029 GB, free: 7.953 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005677/0.1261, allocations: 441.9 kB / 0.5033 GB, free: 7.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1261, allocations: 7.938 kB / 0.5033 GB, free: 7.512 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1261, allocations: 0 / 0.5033 GB, free: 7.512 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.1261, allocations: 0 / 0.5033 GB, free: 7.512 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: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001479/0.1276, allocations: 0.8019 MB / 0.5041 GB, free: 6.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.1276, allocations: 15.89 kB / 0.5041 GB, free: 6.645 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.613e-05/0.1277, allocations: 66.66 kB / 0.5042 GB, free: 6.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.1279, allocations: 60.61 kB / 0.5042 GB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005802/0.1284, allocations: 382.3 kB / 0.5046 GB, free: 6.098 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.269e-05/0.1285, allocations: 33.02 kB / 0.5046 GB, free: 6.066 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.9e-05/0.1286, allocations: 40.33 kB / 0.5047 GB, free: 6.027 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005556/0.1291, allocations: 318 kB / 0.505 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/0.1292, allocations: 0 / 0.505 GB, free: 5.699 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.1292, allocations: 12 kB / 0.505 GB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1292, allocations: 4 kB / 0.505 GB, free: 5.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00046/0.1297, allocations: 222.4 kB / 0.5052 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001935/0.1316, allocations: 1.168 MB / 0.5063 GB, free: 4.227 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.1322, allocations: 261.1 kB / 0.5066 GB, free: 3.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/0.1325, allocations: 129.3 kB / 0.5067 GB, free: 3.836 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.135e-05/0.1325, allocations: 4.281 kB / 0.5067 GB, free: 3.832 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1325, allocations: 38.84 kB / 0.5067 GB, free: 3.785 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 1.643e-06/0.1325, allocations: 0 / 0.5067 GB, free: 3.785 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002339/0.1349, allocations: 1.085 MB / 0.5078 GB, free: 2.613 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.1349, allocations: 55.41 kB / 0.5079 GB, free: 2.547 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004535/0.1354, allocations: 381.5 kB / 0.5082 GB, free: 2.168 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.1355, allocations: 37.7 kB / 0.5083 GB, free: 2.125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.1356, allocations: 224.9 kB / 0.5085 GB, free: 1.902 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.1358, allocations: 134.8 kB / 0.5086 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.1359, allocations: 74.12 kB / 0.5087 GB, free: 1.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.1361, allocations: 346.8 kB / 0.509 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.1363, allocations: 92.83 kB / 0.5091 GB, free: 1.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002328/0.1365, allocations: 148.6 kB / 0.5092 GB, free: 1.094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004329/0.137, allocations: 252 kB / 0.5095 GB, free: 0.832 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.137, allocations: 4 kB / 0.5095 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006135/0.1376, allocations: 353.1 kB / 0.5098 GB, free: 488 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1376, allocations: 7.906 kB / 0.5098 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.557e-06/0.1376, allocations: 3.984 kB / 0.5098 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.1377, allocations: 4 kB / 0.5098 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007136/0.1384, allocations: 143.8 kB / 0.51 GB, free: 328 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.1398, allocations: 1.437 MB / 0.5114 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.1401, allocations: 24.11 kB / 0.5114 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.1401, allocations: 15.94 kB / 0.5114 GB, free: 14.7 MB / 414.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 (48): * Single equations (assignments): 47 * 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.0001799/0.1403, allocations: 157.7 kB / 0.5116 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.677e-05/0.1404, allocations: 47.66 kB / 0.5116 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005708/0.141, allocations: 314 kB / 0.5119 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.141, allocations: 0 / 0.5119 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.141, allocations: 11.94 kB / 0.5119 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.141, allocations: 0 / 0.5119 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001203/0.1422, allocations: 0.7875 MB / 0.5127 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1422, allocations: 0 / 0.5127 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004478/0.1427, allocations: 79.91 kB / 0.5128 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.1427, allocations: 4 kB / 0.5128 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.1427, allocations: 7.984 kB / 0.5128 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1427, allocations: 4 kB / 0.5128 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1427, allocations: 0 / 0.5128 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008047/0.1435, allocations: 0.5246 MB / 0.5133 GB, free: 12.69 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001526/0.1437, allocations: 136.8 kB / 0.5134 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.1438, allocations: 8 kB / 0.5134 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.144, allocations: 15.94 kB / 0.5134 GB, free: 12.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.011e-05/0.1441, allocations: 19.97 kB / 0.5135 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1441, allocations: 8 kB / 0.5135 GB, free: 12.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003075/0.1444, allocations: 271.2 kB / 0.5137 GB, free: 12.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1444, allocations: 0 / 0.5137 GB, free: 12.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.1448, allocations: 91.94 kB / 0.5138 GB, free: 12.13 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (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,secondaryController.powerOffset) * 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 (36): * Single equations (assignments): 36 * 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.001145/0.1459, allocations: 1.049 MB / 0.5148 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007172/0.1467, allocations: 288 kB / 0.5151 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1467, allocations: 0 / 0.5151 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002401/0.1469, allocations: 127.8 kB / 0.5152 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005443/0.1475, allocations: 90.06 kB / 0.5153 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005846/0.1533, allocations: 3.987 MB / 0.5192 GB, free: 6.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005043/0.1539, allocations: 0.8235 MB / 0.52 GB, free: 5.617 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.1541, allocations: 51.25 kB / 0.5201 GB, free: 5.562 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000263/0.1543, allocations: 151.4 kB / 0.5202 GB, free: 5.414 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1543, allocations: 0 / 0.5202 GB, free: 5.414 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2158/0.3701, allocations: 8.602 MB / 0.5286 GB, free: 30.38 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.434/8.804, allocations: 4.875 kB / 0.5286 GB, free: 30.38 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical7.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical7.pipe 2>&1)