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 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.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.001768/0.001768, allocations: 111.9 kB / 17.29 MB, free: 6.188 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.002463/0.002463, allocations: 197.3 kB / 18.21 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.008/3.008, allocations: 222.9 MB / 241.9 MB, free: 15.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4449/0.4449, allocations: 38.02 MB / 330 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00262/0.00262, allocations: 63.55 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2147, allocations: 58.06 MB / 457 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.01306/0.2278, allocations: 5.349 MB / 462.3 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00743/0.2354, allocations: 2.586 MB / 464.9 MB, free: 448 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.2366, allocations: 19.88 kB / 464.9 MB, free: 428 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002168/0.2388, allocations: 426.1 kB / 465.4 MB, free: 4 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002808/0.2416, allocations: 478.5 kB / 465.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001743/0.2434, allocations: 251.4 kB / 466.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002227/0.2456, allocations: 0.7437 MB / 466.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001211/0.2469, allocations: 361.4 kB / 467.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009719/0.2479, allocations: 326.6 kB / 467.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007635/0.2487, allocations: 346.8 kB / 467.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.336e-05/0.2488, allocations: 36 kB / 467.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002049/0.2508, allocations: 0.6352 MB / 468.5 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003875/0.2512, allocations: 203.4 kB / 468.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004557/0.2517, allocations: 242.9 kB / 468.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00158/0.2533, allocations: 0.5691 MB / 469.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.2533, allocations: 0 / 469.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.2534, allocations: 0 / 469.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.2534, allocations: 4 kB / 469.5 MB, free: 11.85 MB / 350.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.002108/0.2555, allocations: 0.78 MB / 470.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.325e-05/0.2556, allocations: 11.89 kB / 470.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002872/0.2585, allocations: 200.1 kB / 470.5 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009623/0.2595, allocations: 358.3 kB / 470.8 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.004e-05/0.2596, allocations: 29.38 kB / 470.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001478/0.2597, allocations: 44.36 kB / 470.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.2615, allocations: 0.6382 MB / 471.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.852e-05/0.2615, allocations: 7.906 kB / 471.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.03e-05/0.2616, allocations: 16 kB / 471.6 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-05/0.2617, allocations: 36.98 kB / 471.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005874/0.2676, allocations: 0.605 MB / 472.2 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005684/0.2733, allocations: 2.261 MB / 474.5 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005534/0.2789, allocations: 482.6 kB / 475 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006383/0.2796, allocations: 233.7 kB / 475.2 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.857e-05/0.2797, allocations: 8 kB / 475.2 MB, free: 5.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.109e-05/0.2798, allocations: 38.5 kB / 475.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 5.6e-06/0.2798, allocations: 0 / 475.2 MB, free: 5.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.006015/0.2858, allocations: 1.707 MB / 476.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/0.286, allocations: 81.11 kB / 477 MB, free: 3.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005648/0.2866, allocations: 279 kB / 477.3 MB, free: 3.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.956e-05/0.2867, allocations: 37.64 kB / 477.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.2869, allocations: 232.2 kB / 477.6 MB, free: 3.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.2871, allocations: 149.8 kB / 477.7 MB, free: 3.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002297/0.2874, allocations: 90.23 kB / 477.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002402/0.2876, allocations: 350.7 kB / 478.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004791/0.2881, allocations: 173 kB / 478.3 MB, free: 2.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005906/0.2887, allocations: 294.3 kB / 478.6 MB, free: 2.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001167/0.2899, allocations: 0.5005 MB / 479.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-05/0.29, allocations: 4 kB / 479.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.006503/0.2965, allocations: 0.6886 MB / 479.8 MB, free: 1.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.85e-05/0.2966, allocations: 4 kB / 479.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/0.2966, allocations: 4 kB / 479.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009651/0.2976, allocations: 177 kB / 480 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006719/0.2983, allocations: 91.89 kB / 480 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/0.3088, allocations: 2.791 MB / 482.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005982/0.3095, allocations: 23.98 kB / 482.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.657e-05/0.3096, allocations: 20 kB / 482.9 MB, free: 13.81 MB / 366.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.0004801/0.3101, allocations: 199.9 kB / 483.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001894/0.3103, allocations: 39.56 kB / 483.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002083/0.3124, allocations: 0.6336 MB / 483.8 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/0.3124, allocations: 8 kB / 483.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.3124, allocations: 3.984 kB / 483.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.376e-05/0.3125, allocations: 3.938 kB / 483.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004108/0.3166, allocations: 1.355 MB / 485.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.3166, allocations: 4 kB / 485.1 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006111/0.3172, allocations: 75.89 kB / 485.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007461/0.318, allocations: 144.8 kB / 485.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00418/0.3222, allocations: 8 kB / 485.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00592/0.3282, allocations: 2.572 MB / 487.9 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.3283, allocations: 4 kB / 487.9 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00749/0.3358, allocations: 0.953 MB / 488.9 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003111/0.3361, allocations: 108.8 kB / 489 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001954/0.3364, allocations: 15.94 kB / 489 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005419/0.3369, allocations: 11.98 kB / 489 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.3372, allocations: 39.89 kB / 489 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.886e-05/0.3373, allocations: 12 kB / 489.1 MB, free: 7.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004756/0.3378, allocations: 197.9 kB / 489.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3378, allocations: 0 / 489.3 MB, free: 7.148 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00141/0.3392, allocations: 144 kB / 489.4 MB, free: 7.008 MB / 366.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.0002769/0.3395, allocations: 103.2 kB / 489.5 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003042/0.3426, allocations: 0.7435 MB / 490.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.687e-06/0.3426, allocations: 0 / 490.2 MB, free: 6.141 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.344, allocations: 426.3 kB / 490.7 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/0.3451, allocations: 66.7 kB / 490.7 MB, free: 5.652 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008835/0.354, allocations: 1.371 MB / 492.1 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.3552, allocations: 0.8746 MB / 493 MB, free: 3.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.3555, allocations: 47.36 kB / 493 MB, free: 3.297 MB / 366.1 MB Notification: Performance of SimCode: time 1.693e-06/0.3555, allocations: 0 / 493 MB, free: 3.297 MB / 366.1 MB Notification: Performance of Templates: time 0.02557/0.3811, allocations: 6.87 MB / 499.9 MB, free: 12.41 MB / 382.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)