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: translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") translateModel(ThermoPower.Test.ElectricalComponents.TestElectrical4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 113.8 kB / 17.74 MB, free: 5.336 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.001237/0.001237, allocations: 185.5 kB / 18.66 MB, free: 4.422 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.293/1.293, allocations: 205.1 MB / 224.5 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.277/0.277, allocations: 48.85 MB / 320.7 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.001407/0.001407, allocations: 63.91 kB / 451.2 MB, free: 8.57 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1198, allocations: 59.15 MB / 0.4984 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.003375/0.1232, allocations: 2.284 MB / 0.5006 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.1245, allocations: 0.6591 MB / 0.5013 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001214/0.1246, allocations: 4 kB / 0.5013 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001442/0.1248, allocations: 35.53 kB / 0.5013 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000272/0.1251, allocations: 83.33 kB / 0.5014 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001786/0.1253, allocations: 59.86 kB / 0.5014 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003582/0.1257, allocations: 274.8 kB / 0.5017 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001628/0.1258, allocations: 60.7 kB / 0.5017 GB, free: 9.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001547/0.126, allocations: 119.4 kB / 0.5019 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.1262, allocations: 111.5 kB / 0.502 GB, free: 9.582 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.345e-05/0.1263, allocations: 20 kB / 0.502 GB, free: 9.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.529e-05/0.1263, allocations: 20 kB / 0.502 GB, free: 9.543 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.762e-05/0.1264, allocations: 47.78 kB / 0.5021 GB, free: 9.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.1265, allocations: 119.3 kB / 0.5022 GB, free: 9.379 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002747/0.1268, allocations: 227.1 kB / 0.5024 GB, free: 9.156 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1268, allocations: 7.938 kB / 0.5024 GB, free: 9.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1268, allocations: 0 / 0.5024 GB, free: 9.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1268, allocations: 0 / 0.5024 GB, free: 9.148 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.0008654/0.1277, allocations: 0.5451 MB / 0.5029 GB, free: 8.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.1277, allocations: 15.83 kB / 0.5029 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.1278, allocations: 32.56 kB / 0.503 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003449/0.1282, allocations: 262.8 kB / 0.5032 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.1282, allocations: 12.38 kB / 0.5032 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.1283, allocations: 20.38 kB / 0.5032 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.1286, allocations: 179.4 kB / 0.5034 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.1286, allocations: 0 / 0.5034 GB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.1286, allocations: 7.938 kB / 0.5034 GB, free: 7.988 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1286, allocations: 4 kB / 0.5034 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.1289, allocations: 115.9 kB / 0.5035 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008948/0.1298, allocations: 0.6502 MB / 0.5042 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.1301, allocations: 142.4 kB / 0.5043 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.1302, allocations: 84.73 kB / 0.5044 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.1302, allocations: 0 / 0.5044 GB, free: 6.926 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.512e-05/0.1303, allocations: 30.56 kB / 0.5044 GB, free: 6.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.332e-06/0.1303, allocations: 0 / 0.5044 GB, free: 6.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001014/0.1313, allocations: 0.5523 MB / 0.505 GB, free: 6.281 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.621e-05/0.1314, allocations: 51.41 kB / 0.505 GB, free: 6.219 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.1316, allocations: 233 kB / 0.5052 GB, free: 5.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1316, allocations: 25.7 kB / 0.5053 GB, free: 5.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.2e-05/0.1317, allocations: 152.3 kB / 0.5054 GB, free: 5.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.958e-05/0.1318, allocations: 67 kB / 0.5055 GB, free: 5.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.114e-05/0.1318, allocations: 33.72 kB / 0.5055 GB, free: 5.691 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.132, allocations: 338.8 kB / 0.5058 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.1321, allocations: 55.97 kB / 0.5059 GB, free: 5.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.1322, allocations: 77.61 kB / 0.5059 GB, free: 5.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002423/0.1325, allocations: 130 kB / 0.5061 GB, free: 5.082 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.1325, allocations: 0 / 0.5061 GB, free: 5.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000327/0.1328, allocations: 201.1 kB / 0.5063 GB, free: 4.879 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1329, allocations: 8 kB / 0.5063 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.1329, allocations: 0 / 0.5063 GB, free: 4.871 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.1329, allocations: 3.938 kB / 0.5063 GB, free: 4.867 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/0.1333, allocations: 67.95 kB / 0.5063 GB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00114/0.1344, allocations: 1.441 MB / 0.5077 GB, free: 3.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.1346, allocations: 8.219 kB / 0.5078 GB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1346, allocations: 8 kB / 0.5078 GB, free: 3.199 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.0001304/0.1347, allocations: 130.5 kB / 0.5079 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.581e-05/0.1348, allocations: 27.66 kB / 0.5079 GB, free: 3.035 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003488/0.1351, allocations: 187.7 kB / 0.5081 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1352, allocations: 7.938 kB / 0.5081 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-06/0.1352, allocations: 0 / 0.5081 GB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1352, allocations: 4 kB / 0.5081 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007193/0.1359, allocations: 0.5256 MB / 0.5086 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1359, allocations: 0 / 0.5086 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.1362, allocations: 47.97 kB / 0.5087 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1362, allocations: 0 / 0.5087 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.1362, allocations: 0 / 0.5087 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1362, allocations: 0 / 0.5087 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.1362, allocations: 4 kB / 0.5087 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005006/0.1367, allocations: 355.2 kB / 0.509 GB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001008/0.1368, allocations: 108.8 kB / 0.5091 GB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.1368, allocations: 8 kB / 0.5091 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.137, allocations: 4 kB / 0.5091 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.276e-05/0.1371, allocations: 11.98 kB / 0.5091 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/0.1371, allocations: 7.984 kB / 0.5091 GB, free: 1.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00015/0.1372, allocations: 172.5 kB / 0.5093 GB, free: 1.512 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1372, allocations: 0 / 0.5093 GB, free: 1.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.1375, allocations: 48 kB / 0.5094 GB, free: 1.465 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.0001071/0.1377, allocations: 99.19 kB / 0.5094 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004695/0.1381, allocations: 147.9 kB / 0.5096 GB, free: 1.215 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1381, allocations: 4.062 kB / 0.5096 GB, free: 1.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.1383, allocations: 71.91 kB / 0.5097 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.1387, allocations: 48.28 kB / 0.5097 GB, free: 1.094 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.1398, allocations: 0.6743 MB / 0.5104 GB, free: 396 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.1402, allocations: 0.7481 MB / 0.5111 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.339e-05/0.1402, allocations: 27.44 kB / 0.5111 GB, free: 15.59 MB / 414.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1403, allocations: 0 / 0.5111 GB, free: 15.59 MB / 414.1 MB Notification: Performance of Templates: time 0.005476/0.1457, allocations: 2.956 MB / 0.514 GB, free: 12.62 MB / 414.1 MB make -j1 -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.makefile (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 & ./ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical4.pipe 2>&1)