Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.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.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical6,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6",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.001168/0.001168, allocations: 106 kB / 17.06 MB, free: 6.133 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.001181/0.001181, allocations: 195 kB / 18 MB, free: 5.207 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.407/1.407, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3169/0.3169, allocations: 48.85 MB / 320.1 MB, free: 11.03 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.00159/0.00159, allocations: 67.89 kB / 450 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1106, allocations: 59.15 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004439/0.1151, allocations: 2.958 MB / 0.5001 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001541/0.1166, allocations: 0.815 MB / 0.5009 GB, free: 9.977 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003169/0.117, allocations: 11.94 kB / 0.5009 GB, free: 9.965 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002163/0.1172, allocations: 47.39 kB / 0.501 GB, free: 9.918 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004563/0.1177, allocations: 138.8 kB / 0.5011 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.118, allocations: 111.8 kB / 0.5012 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005708/0.1186, allocations: 498.3 kB / 0.5017 GB, free: 9.184 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002573/0.1189, allocations: 148 kB / 0.5018 GB, free: 9.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003053/0.1192, allocations: 187.2 kB / 0.502 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000298/0.1195, allocations: 207 kB / 0.5022 GB, free: 8.648 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.329e-05/0.1196, allocations: 32 kB / 0.5022 GB, free: 8.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.537e-05/0.1197, allocations: 40 kB / 0.5023 GB, free: 8.578 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.779e-05/0.1198, allocations: 87.61 kB / 0.5024 GB, free: 8.492 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001981/0.12, allocations: 218.7 kB / 0.5026 GB, free: 8.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004256/0.1204, allocations: 406.4 kB / 0.503 GB, free: 7.879 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1204, allocations: 0 / 0.503 GB, free: 7.879 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1204, allocations: 4 kB / 0.503 GB, free: 7.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.1205, allocations: 0 / 0.503 GB, free: 7.875 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001311/0.1218, allocations: 0.7554 MB / 0.5037 GB, free: 7.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1218, allocations: 12.03 kB / 0.5037 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.736e-05/0.1219, allocations: 66.72 kB / 0.5038 GB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.122, allocations: 48.38 kB / 0.5038 GB, free: 6.938 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005045/0.1226, allocations: 354.1 kB / 0.5042 GB, free: 6.551 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.1226, allocations: 29.03 kB / 0.5042 GB, free: 6.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.7e-05/0.1227, allocations: 44.02 kB / 0.5042 GB, free: 6.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004964/0.1232, allocations: 289.8 kB / 0.5045 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.1232, allocations: 0 / 0.5045 GB, free: 6.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.745e-05/0.1232, allocations: 15.98 kB / 0.5045 GB, free: 6.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1233, allocations: 8 kB / 0.5045 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003813/0.1236, allocations: 206.1 kB / 0.5047 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.1254, allocations: 1.108 MB / 0.5058 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003884/0.1258, allocations: 244.2 kB / 0.506 GB, free: 4.527 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001935/0.126, allocations: 116.8 kB / 0.5062 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.109e-05/0.1261, allocations: 4 kB / 0.5062 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.1261, allocations: 35.08 kB / 0.5062 GB, free: 4.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.853e-06/0.1261, allocations: 4 kB / 0.5062 GB, free: 4.359 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001849/0.128, allocations: 0.929 MB / 0.5071 GB, free: 3.359 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.608e-05/0.128, allocations: 55.41 kB / 0.5072 GB, free: 3.293 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003833/0.1284, allocations: 361.7 kB / 0.5075 GB, free: 2.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.1285, allocations: 33.64 kB / 0.5075 GB, free: 2.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1286, allocations: 204.3 kB / 0.5077 GB, free: 2.688 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.598e-05/0.1287, allocations: 126.2 kB / 0.5078 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1288, allocations: 66.06 kB / 0.5079 GB, free: 2.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1289, allocations: 354.7 kB / 0.5083 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.1291, allocations: 88.7 kB / 0.5083 GB, free: 2.047 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.1293, allocations: 133.8 kB / 0.5085 GB, free: 1.902 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/0.1297, allocations: 243.8 kB / 0.5087 GB, free: 1.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1297, allocations: 0 / 0.5087 GB, free: 1.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009554/0.1307, allocations: 413.2 kB / 0.5091 GB, free: 1.234 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.1307, allocations: 20.02 kB / 0.5091 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.1307, allocations: 0 / 0.5091 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006297/0.1314, allocations: 120.7 kB / 0.5092 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004258/0.1318, allocations: 91.88 kB / 0.5093 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003499/0.1353, allocations: 3.34 MB / 0.5126 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002787/0.1356, allocations: 19.88 kB / 0.5126 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.1357, allocations: 12 kB / 0.5126 GB, free: 13.34 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 (36): * Single equations (assignments): 34 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001923/0.1359, allocations: 149.8 kB / 0.5127 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.023e-05/0.136, allocations: 43.44 kB / 0.5128 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005144/0.1365, allocations: 302 kB / 0.5131 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1365, allocations: 4 kB / 0.5131 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.1365, allocations: 3.938 kB / 0.5131 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1365, allocations: 0 / 0.5131 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.1376, allocations: 0.7488 MB / 0.5138 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1376, allocations: 0 / 0.5138 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004029/0.138, allocations: 79.89 kB / 0.5139 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.138, allocations: 4 kB / 0.5139 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.1381, allocations: 4 kB / 0.5139 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.1381, allocations: 8 kB / 0.5139 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1381, allocations: 4.219 kB / 0.5139 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006468/0.1387, allocations: 499.6 kB / 0.5144 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.1389, allocations: 132.6 kB / 0.5145 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.013e-05/0.1389, allocations: 11.94 kB / 0.5145 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.1392, allocations: 11.98 kB / 0.5145 GB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.844e-05/0.1393, allocations: 27.97 kB / 0.5146 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.1393, allocations: 11.94 kB / 0.5146 GB, free: 11.22 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002631/0.1396, allocations: 251.2 kB / 0.5148 GB, free: 10.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1396, allocations: 0 / 0.5148 GB, free: 10.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003807/0.1399, allocations: 92 kB / 0.5149 GB, free: 10.88 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (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) * 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 (34): * Single equations (assignments): 34 * 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.001001/0.141, allocations: 1.036 MB / 0.5159 GB, free: 9.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.1421, allocations: 438.5 kB / 0.5163 GB, free: 9.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1421, allocations: 4 kB / 0.5163 GB, free: 9.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002087/0.1423, allocations: 115.9 kB / 0.5164 GB, free: 9.262 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005869/0.1429, allocations: 69.52 kB / 0.5165 GB, free: 9.195 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005766/0.1487, allocations: 3.972 MB / 0.5204 GB, free: 5.105 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.1491, allocations: 0.8198 MB / 0.5212 GB, free: 4.262 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.1493, allocations: 47.23 kB / 0.5212 GB, free: 4.219 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002077/0.1495, allocations: 143.4 kB / 0.5214 GB, free: 4.078 MB / 414.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1495, allocations: 0 / 0.5214 GB, free: 4.078 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2173/0.3668, allocations: 8.606 MB / 0.5298 GB, free: 31.03 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.01, allocations: 2.812 kB / 0.5298 GB, free: 31.03 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical6.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical6.pipe 2>&1)