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.001481/0.001481, allocations: 112.1 kB / 17.06 MB, free: 5.969 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.001888/0.001889, allocations: 200 kB / 18.01 MB, free: 5.055 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.332/1.332, 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.2549/0.2549, 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.001591/0.001591, allocations: 67.91 kB / 450 MB, free: 9.062 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1154, allocations: 59.16 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004046/0.1194, allocations: 2.962 MB / 0.5001 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.1212, allocations: 0.8072 MB / 0.5009 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.1216, allocations: 11.94 kB / 0.5009 GB, free: 9.957 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002261/0.1218, allocations: 51.39 kB / 0.501 GB, free: 9.906 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005067/0.1223, allocations: 138.8 kB / 0.5011 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003121/0.1227, allocations: 115.8 kB / 0.5012 GB, free: 9.656 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006756/0.1234, allocations: 494.3 kB / 0.5017 GB, free: 9.172 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002576/0.1236, allocations: 140 kB / 0.5018 GB, free: 9.031 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/0.124, allocations: 191.2 kB / 0.502 GB, free: 8.844 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003198/0.1243, allocations: 207 kB / 0.5022 GB, free: 8.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.603e-05/0.1244, allocations: 39.98 kB / 0.5023 GB, free: 8.602 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.1245, allocations: 40 kB / 0.5023 GB, free: 8.562 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.943e-05/0.1246, allocations: 83.62 kB / 0.5024 GB, free: 8.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.1248, allocations: 218.7 kB / 0.5026 GB, free: 8.266 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004524/0.1252, allocations: 406.4 kB / 0.503 GB, free: 7.867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1253, allocations: 0 / 0.503 GB, free: 7.867 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1253, allocations: 0 / 0.503 GB, free: 7.867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.1253, allocations: 0 / 0.503 GB, free: 7.867 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.001374/0.1267, allocations: 0.7554 MB / 0.5037 GB, free: 7.062 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.1267, allocations: 8.031 kB / 0.5037 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.893e-05/0.1268, allocations: 70.72 kB / 0.5038 GB, free: 6.977 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.1269, allocations: 56.31 kB / 0.5038 GB, free: 6.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005262/0.1275, allocations: 358.1 kB / 0.5042 GB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.1275, allocations: 21.03 kB / 0.5042 GB, free: 6.512 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.013e-05/0.1276, allocations: 40.03 kB / 0.5042 GB, free: 6.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005369/0.1281, allocations: 293.8 kB / 0.5045 GB, free: 6.168 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.1281, allocations: 8 kB / 0.5045 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.617e-05/0.1282, allocations: 8 kB / 0.5045 GB, free: 6.152 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-06/0.1282, allocations: 11.94 kB / 0.5045 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004012/0.1286, allocations: 202.1 kB / 0.5047 GB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001707/0.1303, allocations: 1.108 MB / 0.5058 GB, free: 4.762 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.1307, allocations: 244.2 kB / 0.506 GB, free: 4.516 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.1309, allocations: 116.8 kB / 0.5062 GB, free: 4.398 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.131, allocations: 4 kB / 0.5062 GB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.539e-05/0.131, allocations: 39.09 kB / 0.5062 GB, free: 4.348 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/0.1311, allocations: 0 / 0.5062 GB, free: 4.348 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001879/0.1329, allocations: 0.925 MB / 0.5071 GB, free: 3.352 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.133, allocations: 59.34 kB / 0.5072 GB, free: 3.281 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003967/0.1334, allocations: 357.7 kB / 0.5075 GB, free: 2.922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.683e-05/0.1334, allocations: 33.7 kB / 0.5075 GB, free: 2.883 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.1336, allocations: 216.3 kB / 0.5077 GB, free: 2.668 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.869e-05/0.1337, allocations: 114.3 kB / 0.5078 GB, free: 2.555 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1338, allocations: 70.06 kB / 0.5079 GB, free: 2.477 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.134, allocations: 354.7 kB / 0.5083 GB, free: 2.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001953/0.1342, allocations: 88.7 kB / 0.5083 GB, free: 2.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.1344, allocations: 129.7 kB / 0.5085 GB, free: 1.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003958/0.1348, allocations: 247.8 kB / 0.5087 GB, free: 1.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1348, allocations: 0 / 0.5087 GB, free: 1.637 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0009313/0.1357, allocations: 421.2 kB / 0.5091 GB, free: 1.215 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.1358, allocations: 7.906 kB / 0.5091 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.1358, allocations: 0 / 0.5091 GB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006517/0.1364, allocations: 124.8 kB / 0.5092 GB, free: 1.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004245/0.1369, allocations: 91.88 kB / 0.5093 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003443/0.1403, allocations: 3.344 MB / 0.5126 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.1406, allocations: 15.88 kB / 0.5126 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.1406, allocations: 15.98 kB / 0.5126 GB, free: 13.33 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.0001752/0.1408, allocations: 153.8 kB / 0.5128 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.475e-05/0.1409, allocations: 43.44 kB / 0.5128 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005028/0.1414, allocations: 298 kB / 0.5131 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1414, allocations: 4 kB / 0.5131 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1414, allocations: 3.938 kB / 0.5131 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1414, allocations: 0 / 0.5131 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.1425, allocations: 0.7527 MB / 0.5138 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1425, allocations: 0 / 0.5138 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003892/0.1429, allocations: 75.91 kB / 0.5139 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.1429, allocations: 4 kB / 0.5139 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.1429, allocations: 7.984 kB / 0.5139 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.863e-06/0.1429, allocations: 4 kB / 0.5139 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.143, allocations: 3.938 kB / 0.5139 GB, free: 11.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/0.1436, allocations: 499.7 kB / 0.5144 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.1438, allocations: 132.5 kB / 0.5145 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.321e-05/0.1439, allocations: 15.98 kB / 0.5145 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.1441, allocations: 12 kB / 0.5145 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.523e-05/0.1442, allocations: 15.97 kB / 0.5146 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.1442, allocations: 12 kB / 0.5146 GB, free: 11.21 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002647/0.1444, allocations: 251.2 kB / 0.5148 GB, free: 10.96 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1445, allocations: 288 / 0.5148 GB, free: 10.96 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003792/0.1448, allocations: 95.98 kB / 0.5149 GB, free: 10.87 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.0009191/0.1458, allocations: 1.036 MB / 0.5159 GB, free: 9.809 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009491/0.1467, allocations: 442.5 kB / 0.5163 GB, free: 9.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1467, allocations: 0 / 0.5163 GB, free: 9.363 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001984/0.1469, allocations: 119.9 kB / 0.5165 GB, free: 9.246 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.1475, allocations: 77.45 kB / 0.5165 GB, free: 9.172 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005823/0.1533, allocations: 3.96 MB / 0.5204 GB, free: 5.094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.1537, allocations: 0.8159 MB / 0.5212 GB, free: 4.254 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.1539, allocations: 43.25 kB / 0.5212 GB, free: 4.215 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001997/0.1541, allocations: 143.4 kB / 0.5214 GB, free: 4.074 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1541, allocations: 0 / 0.5214 GB, free: 4.074 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2475/0.4017, allocations: 8.961 MB / 0.5301 GB, free: 30.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.2, allocations: 5.125 kB / 0.5301 GB, free: 30.72 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)