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.001139/0.001139, allocations: 111.5 kB / 17.69 MB, free: 5.438 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.001036/0.001036, allocations: 192 kB / 18.63 MB, free: 4.508 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.426/1.426, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1781/0.1781, allocations: 37.99 MB / 309.8 MB, free: 5.98 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.001473/0.001473, allocations: 75.81 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2239, allocations: 55.25 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.004745/0.2287, allocations: 4.936 MB / 437 MB, free: 14.56 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.2312, allocations: 2.525 MB / 439.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.2314, allocations: 11.94 kB / 439.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009709/0.2324, allocations: 438.1 kB / 439.9 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008178/0.2333, allocations: 0.5018 MB / 440.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005128/0.2338, allocations: 283.2 kB / 440.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005552/0.2343, allocations: 0.7321 MB / 441.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003844/0.2347, allocations: 345.5 kB / 441.8 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002953/0.235, allocations: 306.8 kB / 442.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003445/0.2354, allocations: 330.8 kB / 442.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.2355, allocations: 40 kB / 442.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007535/0.2362, allocations: 0.6274 MB / 443.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.2364, allocations: 203.4 kB / 443.3 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001687/0.2365, allocations: 242.8 kB / 443.5 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006518/0.2372, allocations: 0.7595 MB / 444.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.2372, allocations: 0 / 444.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2372, allocations: 0 / 444.3 MB, free: 7.234 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.2372, allocations: 7.938 kB / 444.3 MB, free: 7.227 MB / 318.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.0008786/0.2381, allocations: 0.7723 MB / 445 MB, free: 6.406 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2382, allocations: 11.89 kB / 445 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/0.2397, allocations: 208 kB / 445.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004345/0.2401, allocations: 370.4 kB / 445.6 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.2402, allocations: 29.36 kB / 445.6 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.925e-05/0.2403, allocations: 48.28 kB / 445.7 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007378/0.241, allocations: 0.6227 MB / 446.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.491e-05/0.241, allocations: 8 kB / 446.3 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.145e-05/0.2411, allocations: 19.98 kB / 446.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.345e-05/0.2411, allocations: 32.98 kB / 446.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000748/0.2419, allocations: 0.6128 MB / 447 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/0.2445, allocations: 2.234 MB / 449.2 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004991/0.245, allocations: 498.4 kB / 449.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.2453, allocations: 241.6 kB / 449.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.2453, allocations: 15.92 kB / 450 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.2453, allocations: 38.56 kB / 450 MB, free: 1.215 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.634e-06/0.2453, allocations: 0 / 450 MB, free: 1.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002931/0.2483, allocations: 1.709 MB / 451.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.876e-05/0.2484, allocations: 85.11 kB / 451.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.2486, allocations: 283 kB / 452.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/0.2487, allocations: 33.7 kB / 452.1 MB, free: 15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.2488, allocations: 224 kB / 452.3 MB, free: 14.78 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.249, allocations: 157.8 kB / 452.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.2491, allocations: 86.16 kB / 452.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.2493, allocations: 350.7 kB / 452.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002506/0.2496, allocations: 173 kB / 453.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003948/0.25, allocations: 294.3 kB / 453.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000609/0.2506, allocations: 0.5005 MB / 453.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2506, allocations: 0 / 453.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001101/0.2517, allocations: 0.6809 MB / 454.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2517, allocations: 11.94 kB / 454.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2518, allocations: 0 / 454.5 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005505/0.2523, allocations: 173.1 kB / 454.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003495/0.2527, allocations: 95.83 kB / 454.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003343/0.256, allocations: 2.788 MB / 457.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002269/0.2563, allocations: 19.98 kB / 457.6 MB, free: 9.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.2563, allocations: 20.11 kB / 457.6 MB, free: 9.203 MB / 334.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.0002059/0.2565, allocations: 209.5 kB / 457.8 MB, free: 8.988 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.673e-05/0.2566, allocations: 43.47 kB / 457.9 MB, free: 8.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.2577, allocations: 0.6295 MB / 458.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2577, allocations: 4 kB / 458.5 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.2577, allocations: 3.984 kB / 458.5 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.2577, allocations: 3.938 kB / 458.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00204/0.2598, allocations: 1.352 MB / 459.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2598, allocations: 4.062 kB / 459.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003378/0.2601, allocations: 79.89 kB / 460 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004203/0.2606, allocations: 148.6 kB / 460.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.2606, allocations: 8 kB / 460.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002778/0.2634, allocations: 2.563 MB / 462.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2634, allocations: 0 / 462.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.2647, allocations: 0.9536 MB / 463.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.343e-05/0.2648, allocations: 116.7 kB / 463.7 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.615e-05/0.2649, allocations: 19.88 kB / 463.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.2651, allocations: 19.98 kB / 463.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.425e-05/0.2652, allocations: 31.95 kB / 463.8 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.2652, allocations: 16 kB / 463.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.2654, allocations: 197.9 kB / 464 MB, free: 2.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2654, allocations: 0 / 464 MB, free: 2.527 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006198/0.266, allocations: 136 kB / 464.2 MB, free: 2.395 MB / 334.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.000124/0.2661, allocations: 115.1 kB / 464.3 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.2672, allocations: 0.6617 MB / 464.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2673, allocations: 4.312 kB / 464.9 MB, free: 1.598 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006232/0.2679, allocations: 426.2 kB / 465.3 MB, free: 1.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004557/0.2684, allocations: 68.44 kB / 465.4 MB, free: 1.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001627/0.27, allocations: 1.13 MB / 466.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004053/0.2704, allocations: 0.8746 MB / 467.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001702/0.2706, allocations: 71.23 kB / 467.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.265e-05/0.2707, allocations: 27.44 kB / 467.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2707, allocations: 0 / 467.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of Templates: time 0.009753/0.2804, allocations: 5.721 MB / 473.2 MB, free: 9.23 MB / 350.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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.pipe 2>&1)