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: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical5,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5",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.001307/0.001307, allocations: 109.3 kB / 17.06 MB, free: 5.941 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.001233/0.001233, allocations: 197.3 kB / 18.01 MB, free: 5.027 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.364/1.364, 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.2869/0.2869, 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.002149/0.002149, allocations: 63.91 kB / 450 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1154, allocations: 59.15 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical5): time 0.004324/0.1198, allocations: 2.654 MB / 0.4998 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.1211, allocations: 0.7565 MB / 0.5006 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001477/0.1213, allocations: 7.938 kB / 0.5006 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.1214, allocations: 47.45 kB / 0.5006 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003129/0.1218, allocations: 119 kB / 0.5007 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.122, allocations: 79.83 kB / 0.5008 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004494/0.1224, allocations: 402.2 kB / 0.5012 GB, free: 9.695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001867/0.1226, allocations: 85.55 kB / 0.5013 GB, free: 9.609 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002088/0.1229, allocations: 155.4 kB / 0.5014 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/0.1231, allocations: 167.1 kB / 0.5016 GB, free: 9.293 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.113e-05/0.1232, allocations: 24 kB / 0.5016 GB, free: 9.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.791e-05/0.1233, allocations: 28 kB / 0.5016 GB, free: 9.242 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.378e-05/0.1233, allocations: 67.69 kB / 0.5017 GB, free: 9.176 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1235, allocations: 175 kB / 0.5019 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.1239, allocations: 322.5 kB / 0.5022 GB, free: 8.688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1239, allocations: 0 / 0.5022 GB, free: 8.688 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1239, allocations: 0 / 0.5022 GB, free: 8.688 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.124, allocations: 4 kB / 0.5022 GB, free: 8.684 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.001146/0.1251, allocations: 0.6735 MB / 0.5028 GB, free: 7.961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1252, allocations: 15.89 kB / 0.5028 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.026e-05/0.1252, allocations: 54.73 kB / 0.5029 GB, free: 7.883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001123/0.1253, allocations: 40.7 kB / 0.5029 GB, free: 7.844 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004647/0.1258, allocations: 324.2 kB / 0.5033 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.1258, allocations: 20.81 kB / 0.5033 GB, free: 7.473 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/0.1259, allocations: 28.33 kB / 0.5033 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004592/0.1264, allocations: 246.8 kB / 0.5035 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.1264, allocations: 0 / 0.5035 GB, free: 7.188 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.1264, allocations: 12 kB / 0.5035 GB, free: 7.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.1264, allocations: 7.938 kB / 0.5036 GB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.1269, allocations: 177.6 kB / 0.5037 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.1281, allocations: 0.8596 MB / 0.5046 GB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003455/0.1285, allocations: 186.6 kB / 0.5047 GB, free: 5.879 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000221/0.1287, allocations: 104.8 kB / 0.5048 GB, free: 5.773 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.1287, allocations: 4 kB / 0.5048 GB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.903e-05/0.1288, allocations: 38.56 kB / 0.5049 GB, free: 5.723 MB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.393e-06/0.1288, allocations: 0 / 0.5049 GB, free: 5.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=27): time 0.001505/0.1303, allocations: 0.7409 MB / 0.5056 GB, free: 4.934 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.251e-05/0.1303, allocations: 55.41 kB / 0.5057 GB, free: 4.867 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.1307, allocations: 308.5 kB / 0.5059 GB, free: 4.551 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.539e-05/0.1307, allocations: 29.7 kB / 0.506 GB, free: 4.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001389/0.1309, allocations: 176.8 kB / 0.5061 GB, free: 4.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.75e-05/0.131, allocations: 111.1 kB / 0.5063 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.603e-05/0.131, allocations: 53.7 kB / 0.5063 GB, free: 4.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1312, allocations: 342.8 kB / 0.5066 GB, free: 3.828 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001907/0.1314, allocations: 67.97 kB / 0.5067 GB, free: 3.762 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.1316, allocations: 110.8 kB / 0.5068 GB, free: 3.645 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003963/0.132, allocations: 192.2 kB / 0.507 GB, free: 3.449 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-06/0.132, allocations: 0 / 0.507 GB, free: 3.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007019/0.1327, allocations: 331.1 kB / 0.5073 GB, free: 3.117 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1328, allocations: 7.906 kB / 0.5073 GB, free: 3.109 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1328, allocations: 4 kB / 0.5073 GB, free: 3.105 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/0.1331, allocations: 56.81 kB / 0.5074 GB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003823/0.1335, allocations: 75.94 kB / 0.5074 GB, free: 2.973 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002792/0.1363, allocations: 3.032 MB / 0.5104 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000193/0.1365, allocations: 23.91 kB / 0.5104 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.1365, allocations: 8 kB / 0.5104 GB, free: 15.63 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.0001569/0.1367, allocations: 141.8 kB / 0.5106 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.098e-05/0.1367, allocations: 35.88 kB / 0.5106 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005113/0.1373, allocations: 253.3 kB / 0.5108 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.1373, allocations: 4 kB / 0.5108 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-06/0.1373, allocations: 0 / 0.5108 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.649e-06/0.1373, allocations: 7.922 kB / 0.5109 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000988/0.1383, allocations: 0.6665 MB / 0.5115 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1383, allocations: 4 kB / 0.5115 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.1386, allocations: 63.97 kB / 0.5116 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1387, allocations: 0 / 0.5116 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.1387, allocations: 11.94 kB / 0.5116 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.1387, allocations: 3.938 kB / 0.5116 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.1387, allocations: 3.984 kB / 0.5116 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007266/0.1394, allocations: 452.7 kB / 0.512 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1396, allocations: 124.9 kB / 0.5121 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.846e-05/0.1396, allocations: 7.938 kB / 0.5121 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.1398, allocations: 15.98 kB / 0.5122 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/0.1399, allocations: 15.97 kB / 0.5122 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.1399, allocations: 8 kB / 0.5122 GB, free: 13.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002437/0.1402, allocations: 211.1 kB / 0.5124 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1402, allocations: 4 kB / 0.5124 GB, free: 13.51 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003435/0.1405, allocations: 75.98 kB / 0.5125 GB, free: 13.44 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.001053/0.1416, allocations: 0.9776 MB / 0.5134 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008861/0.1425, allocations: 370.5 kB / 0.5138 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.1425, allocations: 0 / 0.5138 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002226/0.1427, allocations: 108 kB / 0.5139 GB, free: 11.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.1432, allocations: 53.06 kB / 0.5139 GB, free: 11.9 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004834/0.148, allocations: 3.378 MB / 0.5172 GB, free: 8.43 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.1485, allocations: 0.7915 MB / 0.518 GB, free: 7.609 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001377/0.1486, allocations: 34.95 kB / 0.518 GB, free: 7.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001797/0.1488, allocations: 115.4 kB / 0.5181 GB, free: 7.457 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1488, allocations: 0 / 0.5181 GB, free: 7.457 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0346/0.1834, allocations: 6.981 MB / 0.525 GB, free: 428 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.988/10.17, allocations: 3.938 kB / 0.525 GB, free: 424 kB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-07 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical5.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical5.pipe 2>&1)