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.00175/0.00175, allocations: 113 kB / 17.05 MB, free: 6.086 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.001983/0.001983, allocations: 188 kB / 17.99 MB, free: 5.184 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.429/1.429, 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.2992/0.2992, 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.002612/0.002612, allocations: 72.11 kB / 450 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1298, allocations: 59.15 MB / 0.4972 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical1): time 0.003505/0.1334, allocations: 2.059 MB / 0.4992 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001129/0.1345, allocations: 0.5969 MB / 0.4998 GB, free: 11.11 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.1347, allocations: 7.938 kB / 0.4998 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.1348, allocations: 27.66 kB / 0.4999 GB, free: 11.07 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1351, allocations: 71.47 kB / 0.4999 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.1352, allocations: 35.95 kB / 0.5 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002702/0.1355, allocations: 215.1 kB / 0.5002 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.1357, allocations: 40.28 kB / 0.5002 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001525/0.1358, allocations: 83.58 kB / 0.5003 GB, free: 10.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.136, allocations: 91.55 kB / 0.5004 GB, free: 10.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.75e-05/0.136, allocations: 12 kB / 0.5004 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.507e-05/0.1361, allocations: 12 kB / 0.5004 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.04e-05/0.1361, allocations: 31.86 kB / 0.5004 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.1362, allocations: 91.47 kB / 0.5005 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.1365, allocations: 163.2 kB / 0.5007 GB, free: 10.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1365, allocations: 4 kB / 0.5007 GB, free: 10.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1365, allocations: 0 / 0.5007 GB, free: 10.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1365, allocations: 0 / 0.5007 GB, free: 10.23 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.0008266/0.1373, allocations: 0.4905 MB / 0.5012 GB, free: 9.691 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1374, allocations: 15.89 kB / 0.5012 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.1374, allocations: 46.73 kB / 0.5012 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.152e-05/0.1375, allocations: 20.8 kB / 0.5012 GB, free: 9.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003226/0.1379, allocations: 256.8 kB / 0.5015 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.539e-05/0.1379, allocations: 12.38 kB / 0.5015 GB, free: 9.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.759e-05/0.1379, allocations: 12.38 kB / 0.5015 GB, free: 9.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002384/0.1382, allocations: 128.1 kB / 0.5016 GB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1382, allocations: 4 kB / 0.5016 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.1382, allocations: 7.984 kB / 0.5016 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1382, allocations: 4 kB / 0.5016 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001914/0.1384, allocations: 83.83 kB / 0.5017 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000775/0.1392, allocations: 0.5529 MB / 0.5023 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/0.1395, allocations: 110.5 kB / 0.5024 GB, free: 8.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.989e-05/0.1396, allocations: 48.83 kB / 0.5024 GB, free: 8.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.264e-05/0.1396, allocations: 4 kB / 0.5024 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.1397, allocations: 34.5 kB / 0.5024 GB, free: 8.223 MB / 398.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.1397, allocations: 0 / 0.5024 GB, free: 8.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=12): time 0.0008157/0.1405, allocations: 442.1 kB / 0.5029 GB, free: 7.738 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.708e-05/0.1405, allocations: 51.41 kB / 0.5029 GB, free: 7.676 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.1408, allocations: 233 kB / 0.5031 GB, free: 7.441 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.1408, allocations: 25.7 kB / 0.5032 GB, free: 7.41 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.971e-05/0.1409, allocations: 128.3 kB / 0.5033 GB, free: 7.281 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.763e-05/0.1409, allocations: 43.64 kB / 0.5033 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.084e-05/0.141, allocations: 33.7 kB / 0.5034 GB, free: 7.199 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.1412, allocations: 326.8 kB / 0.5037 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.267e-05/0.1412, allocations: 31.97 kB / 0.5037 GB, free: 6.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.435e-05/0.1413, allocations: 66.44 kB / 0.5038 GB, free: 6.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.1415, allocations: 86.56 kB / 0.5038 GB, free: 6.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.1415, allocations: 0 / 0.5038 GB, free: 6.672 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000251/0.1418, allocations: 153.4 kB / 0.504 GB, free: 6.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1418, allocations: 11.97 kB / 0.504 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.1418, allocations: 0 / 0.504 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1419, allocations: 4 kB / 0.504 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.142, allocations: 35.92 kB / 0.504 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.142, allocations: 0 / 0.504 GB, free: 6.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.867e-05/0.1421, allocations: 11.94 kB / 0.5041 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.1422, allocations: 7.984 kB / 0.5041 GB, free: 6.445 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.0001044/0.1423, allocations: 121.8 kB / 0.5042 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.451e-05/0.1423, allocations: 27.8 kB / 0.5042 GB, free: 6.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.98e-05/0.1424, allocations: 25.66 kB / 0.5042 GB, free: 6.258 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1424, allocations: 3.984 kB / 0.5042 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1424, allocations: 0 / 0.5042 GB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1424, allocations: 4 kB / 0.5042 GB, free: 6.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005549/0.143, allocations: 442.3 kB / 0.5047 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.143, allocations: 0 / 0.5047 GB, free: 5.762 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.1431, allocations: 31.92 kB / 0.5047 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.794e-06/0.1431, allocations: 0 / 0.5047 GB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.1432, allocations: 4 kB / 0.5047 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1432, allocations: 3.984 kB / 0.5047 GB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.1432, allocations: 4 kB / 0.5047 GB, free: 5.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003613/0.1435, allocations: 256.3 kB / 0.5049 GB, free: 5.453 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.759e-05/0.1436, allocations: 105 kB / 0.505 GB, free: 5.332 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.1437, allocations: 3.984 kB / 0.505 GB, free: 5.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001216/0.1438, allocations: 7.938 kB / 0.5051 GB, free: 5.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.1438, allocations: 15.98 kB / 0.5051 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.1439, allocations: 0 / 0.5051 GB, free: 5.305 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000164/0.144, allocations: 160.5 kB / 0.5052 GB, free: 5.148 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.144, allocations: 4 kB / 0.5052 GB, free: 5.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002487/0.1443, allocations: 35.94 kB / 0.5053 GB, free: 5.109 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.0006671/0.145, allocations: 0.7943 MB / 0.506 GB, free: 4.289 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.1452, allocations: 91.88 kB / 0.5061 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1452, allocations: 0 / 0.5061 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.554e-05/0.1453, allocations: 39.92 kB / 0.5062 GB, free: 4.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003635/0.1457, allocations: 37.03 kB / 0.5062 GB, free: 4.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002776/0.1485, allocations: 2.275 MB / 0.5084 GB, free: 1.766 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.1488, allocations: 0.728 MB / 0.5091 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.071e-05/0.1489, allocations: 17.53 kB / 0.5091 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.79e-05/0.149, allocations: 47.42 kB / 0.5092 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of SimCode: time 3.1e-07/0.149, allocations: 0 / 0.5092 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02614/0.1751, allocations: 3.73 MB / 0.5128 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/8.174, allocations: 11.94 kB / 0.5128 GB, free: 13.15 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical1.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical1.pipe 2>&1)