Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 111.1 kB / 17.06 MB, free: 6 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.001206/0.001206, allocations: 196 kB / 18 MB, free: 5.078 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.553/1.553, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2/0.2, allocations: 37.99 MB / 309.2 MB, free: 5.945 MB / 254.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.001584/0.001584, allocations: 67.91 kB / 431.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1029, allocations: 55.24 MB / 487.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.006916/0.1098, allocations: 4.93 MB / 492 MB, free: 3.512 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003603/0.1135, allocations: 2.532 MB / 494.6 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003801/0.1139, allocations: 11.94 kB / 494.6 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.1152, allocations: 430.2 kB / 495 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001217/0.1164, allocations: 0.5135 MB / 495.5 MB, free: 16 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000731/0.1172, allocations: 279.2 kB / 495.8 MB, free: 15.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009081/0.1181, allocations: 0.7399 MB / 496.5 MB, free: 15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004504/0.1186, allocations: 333.6 kB / 496.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.119, allocations: 326.7 kB / 497.2 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004051/0.1194, allocations: 322.8 kB / 497.5 MB, free: 14.04 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.1195, allocations: 36 kB / 497.5 MB, free: 14.01 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009712/0.1204, allocations: 0.6313 MB / 498.2 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001859/0.1206, allocations: 203.5 kB / 498.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002169/0.1209, allocations: 238.8 kB / 498.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008223/0.1217, allocations: 0.7595 MB / 499.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1217, allocations: 0 / 499.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1217, allocations: 0 / 499.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1217, allocations: 4 kB / 499.3 MB, free: 12.18 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001045/0.1228, allocations: 0.7722 MB / 0.4884 GB, free: 11.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.1228, allocations: 15.89 kB / 0.4884 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001558/0.1244, allocations: 196.1 kB / 0.4886 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000477/0.1249, allocations: 378.2 kB / 0.489 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.1249, allocations: 29.38 kB / 0.489 GB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.141e-05/0.125, allocations: 52.34 kB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009035/0.1259, allocations: 0.6305 MB / 0.4897 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.005e-05/0.1259, allocations: 0 / 0.4897 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.126, allocations: 16 kB / 0.4897 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.698e-05/0.126, allocations: 40.92 kB / 0.4897 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00088/0.1269, allocations: 0.6089 MB / 0.4903 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002933/0.1299, allocations: 2.245 MB / 0.4925 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005979/0.1305, allocations: 490.5 kB / 0.493 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003296/0.1308, allocations: 238.2 kB / 0.4932 GB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.985e-05/0.1308, allocations: 4 kB / 0.4932 GB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.1309, allocations: 38.56 kB / 0.4932 GB, free: 6.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=42): time 1.764e-06/0.1309, allocations: 0 / 0.4932 GB, free: 6.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.003286/0.1342, allocations: 1.716 MB / 0.4949 GB, free: 4.375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.1343, allocations: 85.05 kB / 0.495 GB, free: 4.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002761/0.1345, allocations: 282.9 kB / 0.4953 GB, free: 3.988 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.1346, allocations: 29.7 kB / 0.4953 GB, free: 3.953 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.1347, allocations: 228 kB / 0.4955 GB, free: 3.727 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.1349, allocations: 157.8 kB / 0.4957 GB, free: 3.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/0.135, allocations: 82.16 kB / 0.4957 GB, free: 3.484 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1351, allocations: 358.8 kB / 0.4961 GB, free: 3.125 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002664/0.1354, allocations: 173 kB / 0.4962 GB, free: 2.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.1358, allocations: 286.4 kB / 0.4965 GB, free: 2.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006243/0.1364, allocations: 0.5003 MB / 0.497 GB, free: 2.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1364, allocations: 3.938 kB / 0.497 GB, free: 2.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001136/0.1375, allocations: 0.6812 MB / 0.4977 GB, free: 1.387 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.1376, allocations: 12.03 kB / 0.4977 GB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1376, allocations: 4 kB / 0.4977 GB, free: 1.371 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000599/0.1382, allocations: 180.6 kB / 0.4979 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00036/0.1386, allocations: 103.8 kB / 0.498 GB, free: 1.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003465/0.142, allocations: 2.783 MB / 0.5007 GB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.1423, allocations: 19.98 kB / 0.5007 GB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.1423, allocations: 20 kB / 0.5007 GB, free: 14.13 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0002168/0.1426, allocations: 197.7 kB / 0.5009 GB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.424e-05/0.1426, allocations: 35.56 kB / 0.5009 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.1438, allocations: 0.6373 MB / 0.5016 GB, free: 13.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.1438, allocations: 11.98 kB / 0.5016 GB, free: 13.23 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1438, allocations: 4 kB / 0.5016 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1438, allocations: 3.938 kB / 0.5016 GB, free: 13.22 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00216/0.146, allocations: 1.348 MB / 0.5029 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.146, allocations: 3.938 kB / 0.5029 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003298/0.1463, allocations: 83.89 kB / 0.503 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004142/0.1468, allocations: 136.7 kB / 0.5031 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.1468, allocations: 16.06 kB / 0.5031 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002747/0.1495, allocations: 2.552 MB / 0.5056 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.1496, allocations: 7.938 kB / 0.5056 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.1509, allocations: 0.9615 MB / 0.5066 GB, free: 7.863 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.544e-05/0.151, allocations: 116.7 kB / 0.5067 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.827e-05/0.1511, allocations: 7.938 kB / 0.5067 GB, free: 7.723 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.1513, allocations: 19.98 kB / 0.5067 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.296e-05/0.1514, allocations: 31.95 kB / 0.5067 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.1514, allocations: 12 kB / 0.5067 GB, free: 7.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001958/0.1516, allocations: 201.9 kB / 0.5069 GB, free: 7.465 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1516, allocations: 4 kB / 0.5069 GB, free: 7.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006796/0.1523, allocations: 132 kB / 0.5071 GB, free: 7.332 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001385/0.1525, allocations: 107.2 kB / 0.5072 GB, free: 7.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001237/0.1537, allocations: 0.6772 MB / 0.5078 GB, free: 6.527 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1537, allocations: 0 / 0.5078 GB, free: 6.527 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00074/0.1545, allocations: 430.7 kB / 0.5082 GB, free: 6.094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004877/0.155, allocations: 72.7 kB / 0.5083 GB, free: 6.023 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001781/0.1568, allocations: 1.133 MB / 0.5094 GB, free: 4.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.1572, allocations: 0.8707 MB / 0.5103 GB, free: 3.961 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.1574, allocations: 75.22 kB / 0.5103 GB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.607e-05/0.1575, allocations: 27.44 kB / 0.5104 GB, free: 3.859 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1575, allocations: 0 / 0.5104 GB, free: 3.859 MB / 398.1 MB Notification: Performance of Templates: time 0.01037/0.1679, allocations: 5.819 MB / 0.516 GB, free: 14.03 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)