Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000956/0.0009563, allocations: 98.31 kB / 16.3 MB, free: 5.656 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.001063/0.001063, allocations: 188.7 kB / 17.2 MB, free: 5.59 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.521/1.521, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1779/0.1779, allocations: 38.05 MB / 309.7 MB, free: 6.129 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.000477/0.000477, allocations: 16 kB / 376.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.224, allocations: 56.33 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.LocalGeneration): time 0.007338/0.2313, allocations: 8.982 MB / 441.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005076/0.2364, allocations: 3.466 MB / 445.4 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008969/0.2374, allocations: 67.56 kB / 445.4 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006849/0.2381, allocations: 282.3 kB / 445.7 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001492/0.2396, allocations: 0.6814 MB / 446.4 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008765/0.2405, allocations: 425.3 kB / 446.8 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.2415, allocations: 1.015 MB / 447.8 MB, free: 3.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009209/0.2424, allocations: 0.8801 MB / 448.7 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004937/0.2429, allocations: 0.5253 MB / 449.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005892/0.2435, allocations: 0.5408 MB / 449.8 MB, free: 1.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.2436, allocations: 55.98 kB / 449.8 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000484/0.2441, allocations: 275.6 kB / 450.1 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002984/0.2444, allocations: 374.9 kB / 450.4 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002022/0.2446, allocations: 269 kB / 450.7 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.2459, allocations: 1.52 MB / 452.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.2459, allocations: 4 kB / 452.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2459, allocations: 0 / 452.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.2459, allocations: 0 / 452.2 MB, free: 15.37 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: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.002543/0.2484, allocations: 1.425 MB / 453.7 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.2485, allocations: 8.031 kB / 453.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000182/0.2487, allocations: 164.8 kB / 453.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006483/0.2493, allocations: 190.2 kB / 454 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001509/0.2509, allocations: 0.883 MB / 454.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.2509, allocations: 74.06 kB / 455 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002473/0.2512, allocations: 131.9 kB / 455.1 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001838/0.253, allocations: 1.325 MB / 456.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.2531, allocations: 7.938 kB / 456.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.619e-05/0.2532, allocations: 51.95 kB / 456.5 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001009/0.2533, allocations: 65.98 kB / 456.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.2549, allocations: 1.081 MB / 457.6 MB, free: 9.785 MB / 334.1 MB Notification: The following initial equation is redundant and consistent due to simplifications in RemoveSimpleEquations and therefore removed from the initialization problem: 0.000124777475384046 * der(PMgen.generator.i_s[3]) = 0.0 -> 0.0 = 0.0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006261/0.2612, allocations: 5.141 MB / 462.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.2623, allocations: 0.7656 MB / 463.5 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.611e-05/0.2624, allocations: 12.56 kB / 463.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.2624, allocations: 43.12 kB / 463.6 MB, free: 3.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=64): time 3.236e-06/0.2624, allocations: 3.984 kB / 463.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=71): time 0.005347/0.2678, allocations: 2.709 MB / 466.3 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.2679, allocations: 137.1 kB / 466.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.2689, allocations: 0.7472 MB / 467.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.215e-05/0.269, allocations: 33.7 kB / 467.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004404/0.2694, allocations: 0.5728 MB / 467.8 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.2697, allocations: 248.3 kB / 468 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/0.2697, allocations: 20 kB / 468 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001555/0.2699, allocations: 346 kB / 468.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005048/0.2704, allocations: 285.8 kB / 468.7 MB, free: 14.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000676/0.2711, allocations: 0.5527 MB / 469.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006211/0.2717, allocations: 391 kB / 469.6 MB, free: 13.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.2717, allocations: 4 kB / 469.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002647/0.2744, allocations: 1.36 MB / 471 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00134/0.2757, allocations: 3.135 MB / 474.1 MB, free: 8.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.2758, allocations: 15.95 kB / 474.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.2772, allocations: 440.5 kB / 474.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006616/0.2779, allocations: 175.7 kB / 474.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007602/0.2855, allocations: 5.095 MB / 479.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007133/0.2862, allocations: 39.97 kB / 479.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.466e-05/0.2863, allocations: 36 kB / 479.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/0.2863, allocations: 4 kB / 479.9 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002135/0.2884, allocations: 1.152 MB / 481 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.2885, allocations: 8 kB / 481 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.2897, allocations: 413.1 kB / 481.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006039/0.2903, allocations: 163.7 kB / 481.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006424/0.2967, allocations: 4.774 MB / 486.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006203/0.2973, allocations: 39.98 kB / 486.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.68e-05/0.2974, allocations: 39.94 kB / 486.5 MB, free: 11.83 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0006487/0.2981, allocations: 440.7 kB / 486.9 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.2982, allocations: 98.81 kB / 487 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001316/0.2995, allocations: 0.8757 MB / 487.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.2996, allocations: 8 kB / 487.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2996, allocations: 0 / 487.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.2996, allocations: 3.984 kB / 487.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002625/0.3022, allocations: 1.865 MB / 489.7 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3022, allocations: 4 kB / 489.7 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007875/0.303, allocations: 167.8 kB / 489.9 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.731e-06/0.3031, allocations: 4 kB / 489.9 MB, free: 8.273 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/0.3031, allocations: 19.98 kB / 489.9 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.3031, allocations: 4 kB / 489.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3031, allocations: 0 / 489.9 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.3047, allocations: 1.314 MB / 491.3 MB, free: 6.895 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003042/0.3051, allocations: 227.8 kB / 491.5 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.3052, allocations: 19.95 kB / 491.5 MB, free: 6.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004377/0.3056, allocations: 31.97 kB / 491.5 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.012e-05/0.3057, allocations: 44.59 kB / 491.6 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.3057, allocations: 16 kB / 491.6 MB, free: 6.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005857/0.3063, allocations: 0.5068 MB / 492.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.194e-06/0.3064, allocations: 0 / 492.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001493/0.3079, allocations: 467.9 kB / 492.5 MB, free: 5.586 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * 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 (77): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002196/0.3101, allocations: 2.104 MB / 494.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003272/0.3133, allocations: 1.901 MB / 496.6 MB, free: 1.512 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.3134, allocations: 8.125 kB / 496.6 MB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005124/0.3139, allocations: 347.5 kB / 496.9 MB, free: 1.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009879/0.3149, allocations: 231.7 kB / 497.1 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/0.3286, allocations: 12.35 MB / 0.4975 GB, free: 4.242 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001243/0.3299, allocations: 1.221 MB / 0.4987 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00127/0.3312, allocations: 247.4 kB / 0.499 GB, free: 2.746 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006893/0.3319, allocations: 439.3 kB / 0.4994 GB, free: 2.316 MB / 382.1 MB Notification: Performance of SimCode: time 2.866e-06/0.3319, allocations: 3.938 kB / 0.4994 GB, free: 2.312 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2328/0.5648, allocations: 25.77 MB / 0.5246 GB, free: 83.16 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/0.565, allocations: 219.3 kB / 0.5248 GB, free: 82.91 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.196/2.761, allocations: 2.812 kB / 0.5248 GB, free: 82.91 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_LocalGeneration.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1) Environment - environmentSimulation: