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.001672/0.001672, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001819/0.001819, allocations: 189.4 kB / 18 MB, free: 5.102 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.432/1.432, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2967/0.2967, allocations: 48.85 MB / 320.1 MB, free: 11.02 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.00212/0.00212, allocations: 67.89 kB / 450 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.125, allocations: 59.15 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical6): time 0.004588/0.1296, allocations: 2.966 MB / 0.5001 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.1313, allocations: 0.8034 MB / 0.5009 GB, free: 9.988 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002686/0.1315, allocations: 7.938 kB / 0.5009 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.1318, allocations: 59.33 kB / 0.501 GB, free: 9.922 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004447/0.1322, allocations: 142.8 kB / 0.5011 GB, free: 9.781 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002919/0.1325, allocations: 107.8 kB / 0.5012 GB, free: 9.676 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006575/0.1332, allocations: 494.3 kB / 0.5017 GB, free: 9.191 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.1335, allocations: 144.1 kB / 0.5018 GB, free: 9.047 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002805/0.1338, allocations: 191.2 kB / 0.502 GB, free: 8.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.1341, allocations: 203 kB / 0.5022 GB, free: 8.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.818e-05/0.1341, allocations: 36 kB / 0.5022 GB, free: 8.625 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.481e-05/0.1342, allocations: 32 kB / 0.5023 GB, free: 8.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.479e-05/0.1343, allocations: 87.61 kB / 0.5024 GB, free: 8.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002071/0.1345, allocations: 214.8 kB / 0.5026 GB, free: 8.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005029/0.1351, allocations: 414 kB / 0.503 GB, free: 7.891 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1351, allocations: 0 / 0.503 GB, free: 7.891 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1351, allocations: 4 kB / 0.503 GB, free: 7.887 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1351, allocations: 0 / 0.503 GB, free: 7.887 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.001328/0.1364, allocations: 0.7707 MB / 0.5037 GB, free: 7.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1365, allocations: 8.031 kB / 0.5037 GB, free: 7.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.4e-05/0.1365, allocations: 70.72 kB / 0.5038 GB, free: 6.98 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.1367, allocations: 56.61 kB / 0.5038 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005324/0.1372, allocations: 358.4 kB / 0.5042 GB, free: 6.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.487e-05/0.1373, allocations: 32.97 kB / 0.5042 GB, free: 6.504 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/0.1373, allocations: 44.08 kB / 0.5043 GB, free: 6.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005216/0.1379, allocations: 293.7 kB / 0.5045 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1379, allocations: 0 / 0.5045 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.1379, allocations: 12 kB / 0.5046 GB, free: 6.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.1379, allocations: 4 kB / 0.5046 GB, free: 6.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004227/0.1384, allocations: 210.1 kB / 0.5048 GB, free: 5.938 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.1401, allocations: 1.109 MB / 0.5058 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004219/0.1406, allocations: 248.2 kB / 0.5061 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.1408, allocations: 116.8 kB / 0.5062 GB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.1408, allocations: 4 kB / 0.5062 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.1409, allocations: 35.09 kB / 0.5062 GB, free: 4.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 3.466e-06/0.1409, allocations: 4 kB / 0.5062 GB, free: 4.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.001879/0.1428, allocations: 0.9336 MB / 0.5071 GB, free: 3.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.1428, allocations: 63.39 kB / 0.5072 GB, free: 3.258 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004059/0.1432, allocations: 361.6 kB / 0.5075 GB, free: 2.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.939e-05/0.1433, allocations: 33.7 kB / 0.5076 GB, free: 2.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.1434, allocations: 204.7 kB / 0.5078 GB, free: 2.652 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001046/0.1436, allocations: 126.9 kB / 0.5079 GB, free: 2.527 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.1437, allocations: 70.06 kB / 0.508 GB, free: 2.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.1438, allocations: 354.7 kB / 0.5083 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001894/0.144, allocations: 84.7 kB / 0.5084 GB, free: 2.012 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002177/0.1443, allocations: 141.7 kB / 0.5085 GB, free: 1.859 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004719/0.1447, allocations: 239.8 kB / 0.5087 GB, free: 1.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1447, allocations: 0 / 0.5087 GB, free: 1.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001008/0.1458, allocations: 421.4 kB / 0.5091 GB, free: 1.188 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.1458, allocations: 12.03 kB / 0.5092 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1458, allocations: 4 kB / 0.5092 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006237/0.1464, allocations: 120.7 kB / 0.5093 GB, free: 1.051 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004401/0.1469, allocations: 95.88 kB / 0.5094 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003666/0.1506, allocations: 3.333 MB / 0.5126 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002586/0.1508, allocations: 23.88 kB / 0.5126 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.506e-05/0.1509, allocations: 12 kB / 0.5127 GB, free: 13.3 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.0001788/0.1511, allocations: 149.7 kB / 0.5128 GB, free: 13.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.676e-05/0.1511, allocations: 39.77 kB / 0.5128 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005603/0.1517, allocations: 306 kB / 0.5131 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1517, allocations: 4 kB / 0.5131 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1517, allocations: 3.938 kB / 0.5131 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.1517, allocations: 3.984 kB / 0.5131 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.1529, allocations: 0.7488 MB / 0.5139 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1529, allocations: 0 / 0.5139 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.1533, allocations: 79.91 kB / 0.5139 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1533, allocations: 0 / 0.5139 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.611e-05/0.1534, allocations: 11.98 kB / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.1534, allocations: 4 kB / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1534, allocations: 3.938 kB / 0.514 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007406/0.1541, allocations: 0.4921 MB / 0.5144 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.1543, allocations: 136.8 kB / 0.5146 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.689e-05/0.1543, allocations: 7.984 kB / 0.5146 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.1546, allocations: 8 kB / 0.5146 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.1546, allocations: 23.97 kB / 0.5146 GB, free: 11.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.953e-05/0.1547, allocations: 12 kB / 0.5146 GB, free: 11.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002931/0.155, allocations: 255.2 kB / 0.5149 GB, free: 10.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.155, allocations: 0 / 0.5149 GB, free: 10.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000393/0.1554, allocations: 92 kB / 0.515 GB, free: 10.84 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.001088/0.1565, allocations: 1.033 MB / 0.516 GB, free: 9.777 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.1575, allocations: 438.5 kB / 0.5164 GB, free: 9.336 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1575, allocations: 4 kB / 0.5164 GB, free: 9.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002232/0.1578, allocations: 119.8 kB / 0.5165 GB, free: 9.215 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005257/0.1583, allocations: 77.52 kB / 0.5166 GB, free: 9.141 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006164/0.1645, allocations: 3.979 MB / 0.5205 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.165, allocations: 0.8198 MB / 0.5213 GB, free: 4.199 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001684/0.1652, allocations: 38.94 kB / 0.5213 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002322/0.1654, allocations: 147.4 kB / 0.5214 GB, free: 4.02 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1654, allocations: 0 / 0.5214 GB, free: 4.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2238/0.3892, allocations: 8.755 MB / 0.53 GB, free: 30.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.25, allocations: 6.766 kB / 0.53 GB, free: 30.78 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)