Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.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.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical1,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1",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.001324/0.001324, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001342/0.001342, 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.383/1.383, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.285/0.285, allocations: 48.84 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.002116/0.002117, allocations: 75.88 kB / 450 MB, free: 9.059 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.11, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003623/0.1137, allocations: 2.066 MB / 0.4993 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1148, allocations: 0.5969 MB / 0.4998 GB, free: 11.08 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001024/0.1149, allocations: 7.938 kB / 0.4999 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1151, allocations: 23.72 kB / 0.4999 GB, free: 11.05 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1153, allocations: 67.47 kB / 0.4999 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.1155, allocations: 47.89 kB / 0.5 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002759/0.1157, allocations: 211.1 kB / 0.5002 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.1159, allocations: 40.28 kB / 0.5002 GB, free: 10.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000144/0.1161, allocations: 83.58 kB / 0.5003 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.1162, allocations: 87.55 kB / 0.5004 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.339e-05/0.1163, allocations: 16 kB / 0.5004 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.139e-05/0.1163, allocations: 12 kB / 0.5004 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.205e-05/0.1164, allocations: 35.84 kB / 0.5004 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.1165, allocations: 91.42 kB / 0.5005 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002514/0.1167, allocations: 163.2 kB / 0.5007 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1168, allocations: 0 / 0.5007 GB, free: 10.21 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1168, allocations: 4 kB / 0.5007 GB, free: 10.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1168, allocations: 0 / 0.5007 GB, free: 10.2 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.000805/0.1176, allocations: 0.4905 MB / 0.5012 GB, free: 9.664 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.828e-05/0.1176, allocations: 15.89 kB / 0.5012 GB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.787e-05/0.1177, allocations: 46.73 kB / 0.5012 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.1178, allocations: 20.8 kB / 0.5013 GB, free: 9.574 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.1183, allocations: 248.9 kB / 0.5015 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.1184, allocations: 8.375 kB / 0.5015 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.884e-05/0.1184, allocations: 16.31 kB / 0.5015 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.1188, allocations: 136.3 kB / 0.5016 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1189, allocations: 0 / 0.5016 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.942e-05/0.1189, allocations: 4 kB / 0.5016 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.1189, allocations: 4 kB / 0.5017 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.1192, allocations: 83.83 kB / 0.5017 GB, free: 9.031 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.1204, allocations: 0.5529 MB / 0.5023 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004152/0.1208, allocations: 106.5 kB / 0.5024 GB, free: 8.305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.121, allocations: 40.84 kB / 0.5024 GB, free: 8.262 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.121, allocations: 4 kB / 0.5024 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.121, allocations: 38.5 kB / 0.5025 GB, free: 8.211 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 2.174e-06/0.1211, allocations: 0 / 0.5025 GB, free: 8.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.001232/0.1223, allocations: 442.1 kB / 0.5029 GB, free: 7.727 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.1224, allocations: 55.41 kB / 0.5029 GB, free: 7.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003661/0.1227, allocations: 229 kB / 0.5031 GB, free: 7.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.369e-05/0.1228, allocations: 29.7 kB / 0.5032 GB, free: 7.395 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.1229, allocations: 132.3 kB / 0.5033 GB, free: 7.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.316e-05/0.123, allocations: 39.66 kB / 0.5033 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.456e-05/0.1231, allocations: 33.7 kB / 0.5034 GB, free: 7.184 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002092/0.1233, allocations: 330.8 kB / 0.5037 GB, free: 6.852 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1234, allocations: 27.98 kB / 0.5037 GB, free: 6.824 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001519/0.1236, allocations: 62.5 kB / 0.5038 GB, free: 6.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002922/0.1239, allocations: 94.48 kB / 0.5039 GB, free: 6.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.1239, allocations: 0 / 0.5039 GB, free: 6.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000407/0.1243, allocations: 149.4 kB / 0.504 GB, free: 6.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.1244, allocations: 7.906 kB / 0.504 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1244, allocations: 0 / 0.504 GB, free: 6.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.1244, allocations: 8.062 kB / 0.504 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.1247, allocations: 35.92 kB / 0.5041 GB, free: 6.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1247, allocations: 3.938 kB / 0.5041 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001737/0.1249, allocations: 15.92 kB / 0.5041 GB, free: 6.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.1249, allocations: 4 kB / 0.5041 GB, free: 6.426 MB / 398.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 (16): * Single equations (assignments): 16 * 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 prepare postOptimizeDAE: time 0.0001512/0.1251, allocations: 121.8 kB / 0.5042 GB, free: 6.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.1252, allocations: 27.8 kB / 0.5042 GB, free: 6.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.476e-05/0.1252, allocations: 25.7 kB / 0.5042 GB, free: 6.238 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1253, allocations: 3.938 kB / 0.5042 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1253, allocations: 0 / 0.5042 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.1253, allocations: 0 / 0.5042 GB, free: 6.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009067/0.1262, allocations: 442.4 kB / 0.5047 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.1262, allocations: 4 kB / 0.5047 GB, free: 5.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.1265, allocations: 27.98 kB / 0.5047 GB, free: 5.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.1265, allocations: 3.938 kB / 0.5047 GB, free: 5.711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.1265, allocations: 3.984 kB / 0.5047 GB, free: 5.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1265, allocations: 4 kB / 0.5047 GB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1265, allocations: 0 / 0.5047 GB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005999/0.1271, allocations: 260.3 kB / 0.505 GB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.1273, allocations: 105 kB / 0.5051 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.1274, allocations: 0 / 0.5051 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.1276, allocations: 4 kB / 0.5051 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.1276, allocations: 15.92 kB / 0.5051 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.1277, allocations: 4 kB / 0.5051 GB, free: 5.289 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002728/0.128, allocations: 160.5 kB / 0.5052 GB, free: 5.133 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.128, allocations: 0 / 0.5052 GB, free: 5.133 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005358/0.1285, allocations: 35.94 kB / 0.5053 GB, free: 5.098 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (generator.phi,generator.omega_m,generator.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 (12): * Single equations (assignments): 12 * 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.0009808/0.1295, allocations: 0.7982 MB / 0.5061 GB, free: 4.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003472/0.1299, allocations: 91.88 kB / 0.5061 GB, free: 4.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1299, allocations: 0 / 0.5061 GB, free: 4.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.13, allocations: 43.92 kB / 0.5062 GB, free: 4.141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006188/0.1307, allocations: 32.64 kB / 0.5062 GB, free: 4.109 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004508/0.1352, allocations: 2.271 MB / 0.5084 GB, free: 1.754 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.1357, allocations: 0.728 MB / 0.5091 GB, free: 1 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.1359, allocations: 25.53 kB / 0.5092 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001302/0.136, allocations: 51.42 kB / 0.5092 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.136, allocations: 0 / 0.5092 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03916/0.1752, allocations: 3.723 MB / 0.5128 GB, free: 13.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.281, allocations: 11.94 kB / 0.5129 GB, free: 13.13 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)