Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.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.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical4,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4",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.001458/0.001458, allocations: 112.7 kB / 17.07 MB, free: 5.988 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.001715/0.001715, allocations: 195 kB / 18 MB, free: 5.074 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.339/1.339, 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.2619/0.2619, allocations: 48.85 MB / 320.1 MB, free: 11.01 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.002314/0.002314, allocations: 71.89 kB / 450 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1321, allocations: 59.16 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.00317/0.1353, allocations: 2.273 MB / 0.4995 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001123/0.1364, allocations: 0.663 MB / 0.5001 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001073/0.1365, allocations: 7.938 kB / 0.5001 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.1367, allocations: 31.66 kB / 0.5002 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002577/0.137, allocations: 83.27 kB / 0.5002 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.1372, allocations: 51.94 kB / 0.5003 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003251/0.1375, allocations: 278.7 kB / 0.5005 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.1377, allocations: 72.61 kB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001675/0.1379, allocations: 111.5 kB / 0.5007 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1381, allocations: 115.4 kB / 0.5008 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.682e-05/0.1381, allocations: 16 kB / 0.5008 GB, free: 10.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.485e-05/0.1382, allocations: 24 kB / 0.5009 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.301e-05/0.1383, allocations: 55.77 kB / 0.5009 GB, free: 9.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.1384, allocations: 115.3 kB / 0.501 GB, free: 9.867 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003265/0.1387, allocations: 222.9 kB / 0.5012 GB, free: 9.648 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1388, allocations: 0 / 0.5012 GB, free: 9.648 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1388, allocations: 0 / 0.5012 GB, free: 9.648 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.1388, allocations: 0 / 0.5012 GB, free: 9.648 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.000964/0.1397, allocations: 0.5605 MB / 0.5018 GB, free: 9.039 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.731e-05/0.1398, allocations: 15.89 kB / 0.5018 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.096e-05/0.1399, allocations: 46.73 kB / 0.5019 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.14, allocations: 36.69 kB / 0.5019 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003745/0.1404, allocations: 270.9 kB / 0.5021 GB, free: 8.633 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.1404, allocations: 12.38 kB / 0.5022 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.1405, allocations: 16.38 kB / 0.5022 GB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.1408, allocations: 191.1 kB / 0.5024 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.1408, allocations: 0 / 0.5024 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.1408, allocations: 4 kB / 0.5024 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1409, allocations: 4 kB / 0.5024 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002665/0.1411, allocations: 111.9 kB / 0.5025 GB, free: 8.289 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009317/0.1421, allocations: 0.6464 MB / 0.5031 GB, free: 7.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.1423, allocations: 138.5 kB / 0.5032 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.1425, allocations: 72.77 kB / 0.5033 GB, free: 7.363 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1425, allocations: 12 kB / 0.5033 GB, free: 7.352 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.1426, allocations: 30.56 kB / 0.5033 GB, free: 7.312 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.383e-06/0.1426, allocations: 0 / 0.5033 GB, free: 7.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001045/0.1436, allocations: 0.5487 MB / 0.5039 GB, free: 6.711 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.1437, allocations: 59.41 kB / 0.5039 GB, free: 6.641 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.1439, allocations: 237 kB / 0.5042 GB, free: 6.398 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.144, allocations: 25.7 kB / 0.5042 GB, free: 6.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.65e-05/0.1441, allocations: 148.4 kB / 0.5043 GB, free: 6.219 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.059e-05/0.1441, allocations: 71.39 kB / 0.5044 GB, free: 6.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.826e-05/0.1442, allocations: 37.7 kB / 0.5044 GB, free: 6.105 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.1444, allocations: 338.8 kB / 0.5048 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.1445, allocations: 55.97 kB / 0.5048 GB, free: 5.711 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001499/0.1447, allocations: 69.69 kB / 0.5049 GB, free: 5.637 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002563/0.1449, allocations: 133.9 kB / 0.505 GB, free: 5.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.1449, allocations: 3.984 kB / 0.505 GB, free: 5.496 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003464/0.1453, allocations: 197.3 kB / 0.5052 GB, free: 5.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.1453, allocations: 8 kB / 0.5052 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1453, allocations: 0 / 0.5052 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.1453, allocations: 3.984 kB / 0.5052 GB, free: 5.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003917/0.1457, allocations: 71.94 kB / 0.5053 GB, free: 5.215 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.1469, allocations: 1.441 MB / 0.5067 GB, free: 3.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001409/0.1471, allocations: 8 kB / 0.5067 GB, free: 3.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.1471, allocations: 4.156 kB / 0.5067 GB, free: 3.617 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0001378/0.1472, allocations: 133.8 kB / 0.5068 GB, free: 3.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.884e-05/0.1473, allocations: 31.75 kB / 0.5069 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000349/0.1476, allocations: 187.7 kB / 0.507 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1477, allocations: 4 kB / 0.507 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-06/0.1477, allocations: 0 / 0.507 GB, free: 3.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1477, allocations: 3.984 kB / 0.507 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006961/0.1484, allocations: 0.5296 MB / 0.5076 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1484, allocations: 0 / 0.5076 GB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002269/0.1486, allocations: 47.91 kB / 0.5076 GB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.255e-06/0.1486, allocations: 4 kB / 0.5076 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/0.1487, allocations: 0 / 0.5076 GB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.1487, allocations: 3.984 kB / 0.5076 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1487, allocations: 0 / 0.5076 GB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005165/0.1492, allocations: 367.3 kB / 0.508 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.537e-05/0.1493, allocations: 105 kB / 0.5081 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.1493, allocations: 8 kB / 0.5081 GB, free: 2.102 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.1495, allocations: 7.984 kB / 0.5081 GB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.87e-05/0.1495, allocations: 11.98 kB / 0.5081 GB, free: 2.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/0.1495, allocations: 4 kB / 0.5081 GB, free: 2.078 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001487/0.1497, allocations: 172.5 kB / 0.5083 GB, free: 1.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1497, allocations: 0 / 0.5083 GB, free: 1.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002775/0.15, allocations: 48 kB / 0.5083 GB, free: 1.863 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * 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 (19): * Single equations (assignments): 19 * 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.0007284/0.1507, allocations: 0.8645 MB / 0.5091 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004957/0.1512, allocations: 177.1 kB / 0.5093 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1512, allocations: 0 / 0.5093 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.1514, allocations: 67.91 kB / 0.5094 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.1518, allocations: 40.61 kB / 0.5094 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002977/0.1548, allocations: 2.572 MB / 0.5119 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.1551, allocations: 0.7482 MB / 0.5127 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.688e-05/0.1552, allocations: 25.53 kB / 0.5127 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.1553, allocations: 79.41 kB / 0.5128 GB, free: 13.16 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1553, allocations: 0 / 0.5128 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.1771, allocations: 4.954 MB / 0.5176 GB, free: 8.152 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/7.814, allocations: 11.83 kB / 0.5176 GB, free: 8.141 MB / 414.1 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical4.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)