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.001405/0.001405, allocations: 108.5 kB / 17.06 MB, free: 6.023 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.001593/0.001593, allocations: 192 kB / 18 MB, free: 5.105 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.304/1.304, 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.2568/0.2568, allocations: 48.84 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.002086/0.002086, allocations: 68.23 kB / 450.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1327, allocations: 59.16 MB / 0.4977 GB, free: 13.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.ElectricalComponents.TestElectrical4): time 0.004862/0.1376, allocations: 2.269 MB / 0.4999 GB, free: 11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.1392, allocations: 0.6592 MB / 0.5006 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001435/0.1394, allocations: 4 kB / 0.5006 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.1396, allocations: 27.66 kB / 0.5006 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003355/0.14, allocations: 91.2 kB / 0.5007 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.1402, allocations: 59.92 kB / 0.5008 GB, free: 10.15 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000431/0.1406, allocations: 270.8 kB / 0.501 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.1409, allocations: 76.56 kB / 0.5011 GB, free: 9.805 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000208/0.1411, allocations: 115.5 kB / 0.5012 GB, free: 9.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.1413, allocations: 119.4 kB / 0.5013 GB, free: 9.574 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.423e-05/0.1414, allocations: 16 kB / 0.5013 GB, free: 9.559 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.565e-05/0.1415, allocations: 23.98 kB / 0.5014 GB, free: 9.535 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.979e-05/0.1416, allocations: 43.84 kB / 0.5014 GB, free: 9.492 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.1417, allocations: 119.3 kB / 0.5015 GB, free: 9.375 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003722/0.1421, allocations: 227.1 kB / 0.5017 GB, free: 9.152 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1421, allocations: 4 kB / 0.5017 GB, free: 9.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1421, allocations: 0 / 0.5017 GB, free: 9.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.1422, allocations: 0 / 0.5017 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.001147/0.1433, allocations: 0.549 MB / 0.5023 GB, free: 8.551 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.1434, allocations: 11.89 kB / 0.5023 GB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001483/0.1435, allocations: 32.56 kB / 0.5023 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004381/0.144, allocations: 262.8 kB / 0.5026 GB, free: 8.215 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.144, allocations: 16.38 kB / 0.5026 GB, free: 8.199 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.1441, allocations: 16.38 kB / 0.5026 GB, free: 8.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000476/0.1446, allocations: 183.2 kB / 0.5028 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.1446, allocations: 0 / 0.5028 GB, free: 7.992 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.1446, allocations: 8 kB / 0.5028 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.789e-06/0.1447, allocations: 7.938 kB / 0.5028 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004251/0.1451, allocations: 111.9 kB / 0.5029 GB, free: 7.867 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001312/0.1464, allocations: 0.6462 MB / 0.5035 GB, free: 7.16 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003816/0.1468, allocations: 146.4 kB / 0.5037 GB, free: 7.008 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/0.1471, allocations: 72.83 kB / 0.5037 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.822e-05/0.1471, allocations: 3.938 kB / 0.5037 GB, free: 6.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.936e-05/0.1471, allocations: 34.56 kB / 0.5038 GB, free: 6.887 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.984e-06/0.1471, allocations: 0 / 0.5038 GB, free: 6.887 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001512/0.1487, allocations: 0.5484 MB / 0.5043 GB, free: 6.285 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.075e-05/0.1487, allocations: 51.41 kB / 0.5044 GB, free: 6.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.1491, allocations: 233 kB / 0.5046 GB, free: 5.984 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.206e-05/0.1491, allocations: 29.7 kB / 0.5046 GB, free: 5.949 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001218/0.1493, allocations: 148.3 kB / 0.5047 GB, free: 5.801 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.135e-05/0.1493, allocations: 71 kB / 0.5048 GB, free: 5.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1495, allocations: 37.7 kB / 0.5048 GB, free: 5.688 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.1496, allocations: 342.8 kB / 0.5052 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.1498, allocations: 51.97 kB / 0.5052 GB, free: 5.293 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.1501, allocations: 69.69 kB / 0.5053 GB, free: 5.219 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.1505, allocations: 129.9 kB / 0.5054 GB, free: 5.086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1505, allocations: 4 kB / 0.5054 GB, free: 5.082 MB / 398.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005488/0.1511, allocations: 193.2 kB / 0.5056 GB, free: 4.887 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1511, allocations: 8 kB / 0.5056 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1511, allocations: 0 / 0.5056 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.1511, allocations: 0 / 0.5056 GB, free: 4.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.1517, allocations: 71.88 kB / 0.5057 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001484/0.1532, allocations: 1.445 MB / 0.5071 GB, free: 3.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.1535, allocations: 16.2 kB / 0.5071 GB, free: 3.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.029e-05/0.1535, allocations: 4 kB / 0.5071 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.0001593/0.1537, allocations: 130.4 kB / 0.5072 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.5e-05/0.1537, allocations: 23.72 kB / 0.5073 GB, free: 3.039 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005355/0.1543, allocations: 191.6 kB / 0.5074 GB, free: 2.844 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.1543, allocations: 4 kB / 0.5074 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.1543, allocations: 11.88 kB / 0.5075 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.552e-06/0.1543, allocations: 3.984 kB / 0.5075 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.1554, allocations: 0.5218 MB / 0.508 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.1554, allocations: 0 / 0.508 GB, free: 2.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003687/0.1558, allocations: 51.91 kB / 0.508 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1558, allocations: 0 / 0.508 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.1558, allocations: 0 / 0.508 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.1558, allocations: 0 / 0.508 GB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1559, allocations: 8 kB / 0.508 GB, free: 2.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007393/0.1566, allocations: 347.2 kB / 0.5084 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001323/0.1568, allocations: 108.9 kB / 0.5085 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.156e-05/0.1568, allocations: 4 kB / 0.5085 GB, free: 1.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.1571, allocations: 11.98 kB / 0.5085 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.813e-05/0.1571, allocations: 11.98 kB / 0.5085 GB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.1572, allocations: 8 kB / 0.5085 GB, free: 1.672 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.1574, allocations: 172.5 kB / 0.5087 GB, free: 1.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1574, allocations: 0 / 0.5087 GB, free: 1.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005106/0.1579, allocations: 48 kB / 0.5087 GB, free: 1.457 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.0001185/0.1581, allocations: 91.25 kB / 0.5088 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007326/0.1588, allocations: 169.1 kB / 0.509 GB, free: 1.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1588, allocations: 0 / 0.509 GB, free: 1.195 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.1591, allocations: 71.91 kB / 0.509 GB, free: 1.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005845/0.1597, allocations: 40.36 kB / 0.5091 GB, free: 1.086 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.1614, allocations: 0.6519 MB / 0.5097 GB, free: 416 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.162, allocations: 0.7521 MB / 0.5104 GB, free: 15.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00015/0.1621, allocations: 33.45 kB / 0.5105 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/0.1623, allocations: 27.44 kB / 0.5105 GB, free: 15.57 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1623, allocations: 7.938 kB / 0.5105 GB, free: 15.56 MB / 414.1 MB Notification: Performance of Templates: time 0.008154/0.1704, allocations: 2.353 MB / 0.5128 GB, free: 13.21 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)