Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001357/0.001361, allocations: 185.5 kB / 16.38 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.688/1.688, allocations: 194.5 MB / 211.6 MB, free: 7.523 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001868/0.001868, allocations: 124.6 kB / 256.9 MB, free: 10.14 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2271/0.2271, allocations: 38.01 MB / 340.1 MB, free: 13.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004372/0.0004374, allocations: 17.75 kB / 403.8 MB, free: 55.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07617/0.07663, allocations: 53.22 MB / 457 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.PowerWorld.Test.HydroPlantTest2): time 0.005423/0.08209, allocations: 5.175 MB / 462.2 MB, free: 5.141 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003495/0.08561, allocations: 2.55 MB / 464.7 MB, free: 2.586 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000388/0.08601, allocations: 31.81 kB / 464.8 MB, free: 2.555 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.08639, allocations: 111.2 kB / 464.9 MB, free: 2.445 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009063/0.08731, allocations: 390.7 kB / 465.3 MB, free: 2.062 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008444/0.08817, allocations: 341.4 kB / 465.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006439/0.08884, allocations: 0.5506 MB / 466.1 MB, free: 1.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009462/0.0898, allocations: 0.6131 MB / 466.8 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003773/0.09019, allocations: 298.9 kB / 467.1 MB, free: 248 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003683/0.09058, allocations: 282.7 kB / 467.3 MB, free: 15.96 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.333e-05/0.09068, allocations: 24 kB / 467.4 MB, free: 15.94 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005341/0.09123, allocations: 243.5 kB / 467.6 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002094/0.09145, allocations: 167.5 kB / 467.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.09164, allocations: 145.3 kB / 467.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009865/0.09264, allocations: 0.7404 MB / 468.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.674e-06/0.09265, allocations: 0 / 468.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.653e-06/0.09267, allocations: 0 / 468.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.006e-05/0.0927, allocations: 3.938 kB / 468.6 MB, free: 14.64 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002038/0.09476, allocations: 0.9616 MB / 469.6 MB, free: 13.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.09481, allocations: 16.02 kB / 469.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.09639, allocations: 194.9 kB / 469.8 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.09747, allocations: 0.5083 MB / 470.3 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.28e-05/0.09754, allocations: 45.23 kB / 470.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.09769, allocations: 59.89 kB / 470.4 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.09952, allocations: 0.7569 MB / 471.2 MB, free: 11.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.534e-05/0.09957, allocations: 7.953 kB / 471.2 MB, free: 11.97 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.254e-05/0.09966, allocations: 28 kB / 471.2 MB, free: 11.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.258e-05/0.09974, allocations: 37.3 kB / 471.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.1017, allocations: 0.735 MB / 472 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0051/0.1068, allocations: 2.7 MB / 474.7 MB, free: 8.348 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.1086, allocations: 0.6025 MB / 475.3 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.037e-05/0.1087, allocations: 12.44 kB / 475.3 MB, free: 7.719 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.1097, allocations: 429.9 kB / 475.7 MB, free: 7.277 MB / 314.7 MB Notification: Performance of pre-optimization done (n=55): time 3.288e-06/0.1097, allocations: 4 kB / 475.7 MB, free: 7.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=57): time 0.005436/0.1152, allocations: 2.163 MB / 477.9 MB, free: 5.035 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.134e-05/0.1153, allocations: 111.4 kB / 478 MB, free: 4.902 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007968/0.1161, allocations: 445.8 kB / 478.4 MB, free: 4.453 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.991e-05/0.1162, allocations: 37.7 kB / 478.5 MB, free: 4.41 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000304/0.1165, allocations: 296.7 kB / 478.8 MB, free: 4.117 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002397/0.1168, allocations: 197.1 kB / 478.9 MB, free: 3.922 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.323e-05/0.1168, allocations: 12 kB / 479 MB, free: 3.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.1171, allocations: 366.8 kB / 479.3 MB, free: 3.543 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008056/0.1179, allocations: 297 kB / 479.6 MB, free: 3.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008715/0.1188, allocations: 388 kB / 480 MB, free: 2.84 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009235/0.1197, allocations: 367.7 kB / 480.3 MB, free: 2.473 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.862e-06/0.1197, allocations: 7.953 kB / 480.4 MB, free: 2.465 MB / 314.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00286/0.1226, allocations: 1.025 MB / 481.4 MB, free: 1.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004975/0.1231, allocations: 0.9118 MB / 482.3 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.1231, allocations: 0 / 482.3 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008492/0.124, allocations: 197.6 kB / 482.5 MB, free: 244 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006386/0.1247, allocations: 123.8 kB / 482.6 MB, free: 120 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005828/0.1305, allocations: 3.817 MB / 486.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005735/0.1311, allocations: 64 kB / 486.5 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.166e-05/0.1312, allocations: 27.92 kB / 486.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.028e-06/0.1312, allocations: 4 kB / 486.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002355/0.1336, allocations: 0.8518 MB / 487.4 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.798e-06/0.1336, allocations: 4 kB / 487.4 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006141/0.1342, allocations: 161.7 kB / 487.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005791/0.1348, allocations: 115.8 kB / 487.6 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004714/0.1395, allocations: 3.579 MB / 491.2 MB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005554/0.1401, allocations: 63.98 kB / 491.3 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.855e-05/0.1402, allocations: 20 kB / 491.3 MB, free: 6.875 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.secondary.T_start,secondary.T_start,$PRE.secondary.count,secondary.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0004354/0.1407, allocations: 300.8 kB / 491.6 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001467/0.1408, allocations: 59.3 kB / 491.7 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002188/0.143, allocations: 0.8381 MB / 492.5 MB, free: 5.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.1431, allocations: 12 kB / 492.5 MB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.662e-06/0.1431, allocations: 0 / 492.5 MB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.1431, allocations: 3.984 kB / 492.5 MB, free: 5.648 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003666/0.1468, allocations: 1.667 MB / 494.2 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.381e-06/0.1468, allocations: 4 kB / 494.2 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000745/0.1475, allocations: 140 kB / 494.3 MB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000304/0.1479, allocations: 61.67 kB / 494.4 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.669e-05/0.148, allocations: 19.98 kB / 494.4 MB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002843/0.1508, allocations: 2.709 MB / 497.1 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.292e-06/0.1508, allocations: 0 / 497.1 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/0.1539, allocations: 1.411 MB / 498.5 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003122/0.1543, allocations: 184.3 kB / 498.7 MB, free: 14.99 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001129/0.1544, allocations: 19.94 kB / 498.7 MB, free: 14.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000578/0.155, allocations: 67.92 kB / 498.8 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.1551, allocations: 48.48 kB / 498.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.045e-05/0.1552, allocations: 20 kB / 498.8 MB, free: 14.84 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005944/0.1558, allocations: 315.1 kB / 499.2 MB, free: 14.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.63e-07/0.1558, allocations: 4 kB / 499.2 MB, free: 14.53 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001238/0.1571, allocations: 252 kB / 499.4 MB, free: 14.29 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (hydroPlant.reservoirLevel.y,hydroPlant.rotor.phi,hydroPlant.rotor.w,hydroPlant.controlDynamics.x_scaled[1]) * Number of discrete variables: 4 (system.initime,$whenCondition1,secondary.T_start,secondary.count) * Number of discrete states: 1 (secondary.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001938/0.1573, allocations: 123.1 kB / 499.5 MB, free: 14.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003699/0.161, allocations: 1.739 MB / 0.4895 GB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.001e-06/0.161, allocations: 0 / 0.4895 GB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.1624, allocations: 0.6104 MB / 0.4901 GB, free: 11.71 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006609/0.163, allocations: 117.4 kB / 0.4902 GB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003237/0.1663, allocations: 1.748 MB / 0.4919 GB, free: 9.793 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00077/0.1671, allocations: 0.9505 MB / 0.4929 GB, free: 8.816 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006193/0.1677, allocations: 156.4 kB / 0.493 GB, free: 8.66 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/0.1679, allocations: 43.44 kB / 0.493 GB, free: 8.617 MB / 346.7 MB Notification: Performance of SimCode: time 1.271e-06/0.1679, allocations: 0 / 0.493 GB, free: 8.617 MB / 346.7 MB Notification: Performance of Templates: time 0.02071/0.1887, allocations: 8.601 MB / 0.5014 GB, free: 24 kB / 346.7 MB