Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009411/0.0009411, allocations: 101.8 kB / 16.5 MB, free: 6.648 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.001011/0.001011, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1998/0.1998, allocations: 38.03 MB / 329.3 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 61.3 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1198, allocations: 58.06 MB / 456.1 MB, free: 8.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004805/0.1247, allocations: 3.551 MB / 459.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.1267, allocations: 1.294 MB / 461 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.1269, allocations: 11.94 kB / 461 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006429/0.1276, allocations: 150.8 kB / 461.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004337/0.128, allocations: 167.3 kB / 461.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.1283, allocations: 119.7 kB / 461.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003877/0.1287, allocations: 382.9 kB / 461.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.129, allocations: 114 kB / 461.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.1292, allocations: 103.5 kB / 462 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.1294, allocations: 111.5 kB / 462.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.1294, allocations: 12 kB / 462.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000404/0.1298, allocations: 287.3 kB / 462.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.966e-05/0.1299, allocations: 51.83 kB / 462.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.13, allocations: 99.45 kB / 462.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003858/0.1304, allocations: 307 kB / 462.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1304, allocations: 0 / 462.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1305, allocations: 3.938 kB / 462.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.782e-06/0.1305, allocations: 0 / 462.9 MB, free: 1.812 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007031/0.1312, allocations: 0.4911 MB / 463.4 MB, free: 1.273 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1312, allocations: 8.031 kB / 463.4 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006976/0.1319, allocations: 72.67 kB / 463.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1322, allocations: 264.6 kB / 463.7 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.1323, allocations: 16.69 kB / 463.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.865e-05/0.1323, allocations: 16.38 kB / 463.7 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004109/0.1327, allocations: 276 kB / 464 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.1328, allocations: 0 / 464 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.1328, allocations: 4 kB / 464 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.911e-05/0.1328, allocations: 16.33 kB / 464 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003266/0.1332, allocations: 224 kB / 464.2 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.1347, allocations: 1.214 MB / 465.4 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.135, allocations: 137.1 kB / 465.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.638e-05/0.1351, allocations: 45.86 kB / 465.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.1351, allocations: 4 kB / 465.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.1352, allocations: 34.56 kB / 465.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 3.627e-06/0.1352, allocations: 0 / 465.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.000391/0.1356, allocations: 164.6 kB / 465.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.1357, allocations: 93.11 kB / 465.9 MB, free: 14.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001901/0.1359, allocations: 214.9 kB / 466.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.655e-05/0.1359, allocations: 25.7 kB / 466.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.136, allocations: 151.9 kB / 466.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.136, allocations: 43.36 kB / 466.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.132e-05/0.1361, allocations: 37.7 kB / 466.4 MB, free: 14 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1362, allocations: 330.8 kB / 466.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.286e-05/0.1363, allocations: 39.97 kB / 466.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001255/0.1364, allocations: 125.9 kB / 466.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.1367, allocations: 186.1 kB / 467 MB, free: 13.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1367, allocations: 0 / 467 MB, free: 13.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003048/0.137, allocations: 205.1 kB / 467.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.137, allocations: 4 kB / 467.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.137, allocations: 4 kB / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.1371, allocations: 4.344 kB / 467.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.1373, allocations: 59.84 kB / 467.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000958/0.1383, allocations: 1.321 MB / 468.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.1384, allocations: 24 kB / 468.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.218e-05/0.1384, allocations: 15.98 kB / 468.7 MB, free: 11.49 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (23): * Single equations (assignments): 22 * 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.0001466/0.1386, allocations: 148.5 kB / 468.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.514e-05/0.1386, allocations: 23.69 kB / 468.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002296/0.1389, allocations: 139 kB / 469 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1389, allocations: 0 / 469 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.1389, allocations: 4 kB / 469 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.327e-06/0.1389, allocations: 0 / 469 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006352/0.1395, allocations: 499.9 kB / 469.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1396, allocations: 4 kB / 469.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001668/0.1397, allocations: 27.92 kB / 469.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1397, allocations: 4 kB / 469.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.1398, allocations: 3.984 kB / 469.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008027/0.1406, allocations: 1.325 MB / 470.8 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.1406, allocations: 7.875 kB / 470.8 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003169/0.1409, allocations: 305.9 kB / 471.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.827e-05/0.141, allocations: 100.9 kB / 471.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.141, allocations: 0 / 471.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.629e-05/0.1411, allocations: 8 kB / 471.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.1412, allocations: 15.86 kB / 471.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.1412, allocations: 4 kB / 471.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001269/0.1413, allocations: 147.3 kB / 471.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1413, allocations: 0 / 471.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.1416, allocations: 51.92 kB / 471.5 MB, free: 8.445 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 Backend phase and start with SimCode phase: time 0.0001182/0.1418, allocations: 95.25 kB / 471.6 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003133/0.1421, allocations: 136.8 kB / 471.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1421, allocations: 4.188 kB / 471.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.1423, allocations: 51.91 kB / 471.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.1427, allocations: 34.66 kB / 471.8 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.1437, allocations: 0.5856 MB / 472.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003663/0.1441, allocations: 0.7401 MB / 473.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.745e-05/0.1442, allocations: 33.53 kB / 473.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.272e-05/0.1442, allocations: 15.44 kB / 473.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1442, allocations: 0 / 473.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of Templates: time 0.00464/0.1489, allocations: 1.416 MB / 474.6 MB, free: 5.281 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)