Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.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.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical2,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2",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.001151/0.001151, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001184/0.001184, allocations: 200 kB / 18.01 MB, free: 5.047 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.374/1.374, 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.2684/0.2684, allocations: 48.83 MB / 320.1 MB, free: 10.99 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.001605/0.001605, allocations: 71.83 kB / 450 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1163, allocations: 59.15 MB / 0.4972 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical2): time 0.003393/0.1197, allocations: 2.176 MB / 0.4994 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001062/0.1208, allocations: 0.6319 MB / 0.5 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1209, allocations: 0 / 0.5 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.1211, allocations: 31.66 kB / 0.5 GB, free: 10.89 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.1213, allocations: 79.41 kB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001447/0.1215, allocations: 51.88 kB / 0.5001 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002722/0.1218, allocations: 243 kB / 0.5004 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.1219, allocations: 60.34 kB / 0.5004 GB, free: 10.46 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.1221, allocations: 103.5 kB / 0.5005 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001592/0.1222, allocations: 103.5 kB / 0.5006 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.204e-05/0.1223, allocations: 16 kB / 0.5006 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.175e-05/0.1224, allocations: 16 kB / 0.5007 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.099e-05/0.1224, allocations: 39.84 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.826e-05/0.1225, allocations: 111.3 kB / 0.5008 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002645/0.1228, allocations: 195 kB / 0.501 GB, free: 9.891 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1228, allocations: 3.984 kB / 0.501 GB, free: 9.887 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1228, allocations: 4 kB / 0.501 GB, free: 9.883 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1228, allocations: 0 / 0.501 GB, free: 9.883 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008461/0.1237, allocations: 0.5294 MB / 0.5015 GB, free: 9.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.1237, allocations: 15.89 kB / 0.5015 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.319e-05/0.1238, allocations: 46.73 kB / 0.5016 GB, free: 9.234 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.256e-05/0.1239, allocations: 28.8 kB / 0.5016 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003425/0.1242, allocations: 263 kB / 0.5019 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1242, allocations: 12.31 kB / 0.5019 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.66e-05/0.1243, allocations: 16.38 kB / 0.5019 GB, free: 8.887 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.1246, allocations: 155.4 kB / 0.502 GB, free: 8.723 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.1246, allocations: 7.891 kB / 0.502 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.497e-05/0.1246, allocations: 8 kB / 0.502 GB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.1246, allocations: 4 kB / 0.502 GB, free: 8.703 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00024/0.1249, allocations: 95.94 kB / 0.5021 GB, free: 8.609 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007943/0.1257, allocations: 0.6036 MB / 0.5027 GB, free: 7.945 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.1259, allocations: 122.6 kB / 0.5028 GB, free: 7.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.1261, allocations: 76.8 kB / 0.5029 GB, free: 7.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.092e-05/0.1261, allocations: 7.938 kB / 0.5029 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.1261, allocations: 34.5 kB / 0.503 GB, free: 7.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=16): time 1.313e-06/0.1261, allocations: 0 / 0.503 GB, free: 7.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001057/0.1272, allocations: 0.5604 MB / 0.5035 GB, free: 7.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.1272, allocations: 51.41 kB / 0.5036 GB, free: 7.012 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002119/0.1275, allocations: 229 kB / 0.5038 GB, free: 6.777 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.1275, allocations: 29.7 kB / 0.5038 GB, free: 6.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.102e-05/0.1276, allocations: 136.5 kB / 0.5039 GB, free: 6.605 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.339e-05/0.1277, allocations: 75.42 kB / 0.504 GB, free: 6.531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.444e-05/0.1277, allocations: 37.7 kB / 0.504 GB, free: 6.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1279, allocations: 326.8 kB / 0.5044 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.128, allocations: 51.97 kB / 0.5044 GB, free: 6.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001299/0.1281, allocations: 78.53 kB / 0.5045 GB, free: 6.023 MB / 398.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: grid.f = grid.fnom (0.15915494309189535 * generator.omega_e_nom = grid.fnom) Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.1292, allocations: 429 kB / 0.5049 GB, free: 5.578 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.1292, allocations: 0 / 0.5049 GB, free: 5.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003211/0.1295, allocations: 193.3 kB / 0.5051 GB, free: 5.383 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.1296, allocations: 8 kB / 0.5051 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.1296, allocations: 0 / 0.5051 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1296, allocations: 4.031 kB / 0.5051 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.1298, allocations: 55.91 kB / 0.5051 GB, free: 5.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.1299, allocations: 7.984 kB / 0.5051 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.13, allocations: 12 kB / 0.5052 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.13, allocations: 4 kB / 0.5052 GB, free: 5.293 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: grid.f = grid.fnom. 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 (23): * Single equations (assignments): 23 * 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.0001128/0.1301, allocations: 133.7 kB / 0.5053 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.714e-05/0.1302, allocations: 31.8 kB / 0.5053 GB, free: 5.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.821e-05/0.1302, allocations: 30.17 kB / 0.5053 GB, free: 5.09 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1302, allocations: 7.938 kB / 0.5054 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1303, allocations: 0 / 0.5054 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.1303, allocations: 3.984 kB / 0.5054 GB, free: 5.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000688/0.131, allocations: 0.51 MB / 0.5059 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.131, allocations: 0 / 0.5059 GB, free: 4.512 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002585/0.1312, allocations: 51.97 kB / 0.5059 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1313, allocations: 8 kB / 0.5059 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.1313, allocations: 3.984 kB / 0.5059 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1313, allocations: 0 / 0.5059 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1313, allocations: 0 / 0.5059 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004832/0.1318, allocations: 339.1 kB / 0.5062 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.694e-05/0.1319, allocations: 113 kB / 0.5063 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.706e-05/0.1319, allocations: 0 / 0.5063 GB, free: 3.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001361/0.1321, allocations: 12.14 kB / 0.5064 GB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.676e-05/0.1321, allocations: 15.95 kB / 0.5064 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.1321, allocations: 11.94 kB / 0.5064 GB, free: 3.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1323, allocations: 160.5 kB / 0.5065 GB, free: 3.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1323, allocations: 0 / 0.5065 GB, free: 3.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002874/0.1326, allocations: 40 kB / 0.5066 GB, free: 3.738 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 (18): * Single equations (assignments): 18 * 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.0007021/0.1333, allocations: 0.8649 MB / 0.5074 GB, free: 2.848 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003225/0.1336, allocations: 135.9 kB / 0.5075 GB, free: 2.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1336, allocations: 4 kB / 0.5076 GB, free: 2.711 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.1338, allocations: 67.98 kB / 0.5076 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.1341, allocations: 40.34 kB / 0.5077 GB, free: 2.605 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00298/0.1371, allocations: 2.449 MB / 0.51 GB, free: 64 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.1375, allocations: 0.7474 MB / 0.5108 GB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.124e-05/0.1376, allocations: 17.55 kB / 0.5108 GB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.1377, allocations: 63.41 kB / 0.5109 GB, free: 15.21 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1377, allocations: 0 / 0.5109 GB, free: 15.21 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.1605, allocations: 4.325 MB / 0.5151 GB, free: 10.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/7.909, allocations: 7.984 kB / 0.5151 GB, free: 10.83 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.005 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical2.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical2.pipe 2>&1)