Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.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.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine",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.0009107/0.0009108, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0009504/0.0009504, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.335/1.335, allocations: 205.4 MB / 223.7 MB, free: 13.06 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1713/0.1713, allocations: 38.05 MB / 310.1 MB, free: 5.914 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.0005377/0.000538, allocations: 15.28 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2329, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine): time 0.006836/0.2398, allocations: 8.58 MB / 442.2 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007141/0.247, allocations: 5.848 MB / 448 MB, free: 4.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.2484, allocations: 55.62 kB / 448.1 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007108/0.2555, allocations: 4.73 MB / 452.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001695/0.2572, allocations: 0.5953 MB / 453.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.2583, allocations: 394.3 kB / 453.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003421/0.2617, allocations: 2.931 MB / 456.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001726/0.2634, allocations: 1.261 MB / 458 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007614/0.2642, allocations: 0.4978 MB / 458.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008874/0.2651, allocations: 0.7162 MB / 459.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.823e-05/0.2652, allocations: 48 kB / 459.2 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006425/0.2659, allocations: 339.4 kB / 459.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003959/0.2663, allocations: 430.8 kB / 460 MB, free: 8.105 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005066/0.2668, allocations: 0.5458 MB / 460.5 MB, free: 7.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.2683, allocations: 1.623 MB / 462.2 MB, free: 5.922 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2683, allocations: 4 kB / 462.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2683, allocations: 0 / 462.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.2683, allocations: 0 / 462.2 MB, free: 5.918 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002415/0.2708, allocations: 1.207 MB / 463.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.2708, allocations: 12.03 kB / 463.4 MB, free: 4.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000174/0.271, allocations: 135.2 kB / 463.5 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006794/0.2717, allocations: 151.5 kB / 463.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.2733, allocations: 0.9402 MB / 464.6 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.621e-05/0.2734, allocations: 62 kB / 464.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000181/0.2736, allocations: 95.88 kB / 464.8 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001578/0.2751, allocations: 1.063 MB / 465.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.405e-05/0.2752, allocations: 7.844 kB / 465.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-05/0.2753, allocations: 35.98 kB / 465.9 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002143/0.2755, allocations: 69.95 kB / 465.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001288/0.2768, allocations: 0.8353 MB / 466.8 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005841/0.2827, allocations: 4.024 MB / 470.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009995/0.2837, allocations: 0.6212 MB / 471.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004297/0.2841, allocations: 323.2 kB / 471.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.789e-05/0.2842, allocations: 12.55 kB / 471.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.2842, allocations: 39.12 kB / 471.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=57): time 3.647e-06/0.2842, allocations: 0 / 471.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=65): time 0.004727/0.289, allocations: 2.594 MB / 474.4 MB, free: 9.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.2891, allocations: 111.4 kB / 474.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008793/0.29, allocations: 0.6957 MB / 475.2 MB, free: 8.395 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/0.29, allocations: 37.7 kB / 475.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003713/0.2904, allocations: 483.1 kB / 475.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.2906, allocations: 232.6 kB / 475.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.705e-05/0.2907, allocations: 81.61 kB / 476 MB, free: 7.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.2909, allocations: 394.8 kB / 476.4 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000474/0.2914, allocations: 305.8 kB / 476.7 MB, free: 6.863 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006353/0.292, allocations: 0.5149 MB / 477.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003811/0.2958, allocations: 1.676 MB / 478.9 MB, free: 4.477 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2959, allocations: 4 kB / 478.9 MB, free: 4.473 MB / 350.1 MB Notification: Performance of matching and sorting (n=103) (initialization): time 0.002302/0.2982, allocations: 1.27 MB / 480.1 MB, free: 3.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/0.2982, allocations: 8.312 kB / 480.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.364e-05/0.2982, allocations: 12 kB / 480.2 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001103/0.2993, allocations: 401.7 kB / 480.6 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005066/0.2999, allocations: 151.7 kB / 480.7 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007293/0.3072, allocations: 5.74 MB / 486.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005715/0.3078, allocations: 31.89 kB / 486.5 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.007e-05/0.3079, allocations: 36 kB / 486.5 MB, free: 12.52 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.windGen.WT.turbine.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (75): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0005667/0.3084, allocations: 357 kB / 486.9 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.3086, allocations: 79.06 kB / 486.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00157/0.3101, allocations: 0.9071 MB / 487.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3102, allocations: 8 kB / 487.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.3102, allocations: 4 kB / 487.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.3102, allocations: 3.984 kB / 487.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003048/0.3132, allocations: 2.005 MB / 489.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.3133, allocations: 4 kB / 489.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.3138, allocations: 120 kB / 490 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005211/0.3144, allocations: 186.4 kB / 490.2 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.568e-05/0.3145, allocations: 31.92 kB / 490.2 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004384/0.3188, allocations: 5 MB / 495.2 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.3189, allocations: 3.938 kB / 495.2 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.3208, allocations: 1.266 MB / 496.5 MB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002944/0.3212, allocations: 208.1 kB / 496.7 MB, free: 1.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.488e-05/0.3213, allocations: 23.94 kB / 496.7 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003353/0.3216, allocations: 19.98 kB / 496.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.894e-05/0.3217, allocations: 44.44 kB / 496.8 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.512e-05/0.3218, allocations: 24.17 kB / 496.8 MB, free: 1.637 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006257/0.3224, allocations: 0.4912 MB / 497.3 MB, free: 1.152 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.513e-06/0.3224, allocations: 112 / 497.3 MB, free: 1.152 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009903/0.3234, allocations: 251.9 kB / 497.5 MB, free: 0.9062 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (windGen.generator.i[3],windGen.generator.psi_rd[1],windGen.generator.psi_rq[1],windGen.WT.genRotor.phi,windGen.WT.genRotor.w,windGen.WT.turbine.phi,windGen.WT.turbine.w,windGen.WT.gear.phi,windGen.WT.gear.w,line.i[1],line.i[2]) * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00289/0.3263, allocations: 2.118 MB / 499.6 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001981/0.3283, allocations: 1.13 MB / 0.489 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/0.3283, allocations: 4 kB / 0.489 GB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000953/0.3293, allocations: 0.7153 MB / 0.4897 GB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.3304, allocations: 171.4 kB / 0.4899 GB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/0.3443, allocations: 9.384 MB / 0.4991 GB, free: 2.957 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008077/0.3451, allocations: 1.15 MB / 0.5002 GB, free: 1.777 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000581/0.3457, allocations: 170.6 kB / 0.5003 GB, free: 1.605 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000446/0.3462, allocations: 351.3 kB / 0.5007 GB, free: 1.266 MB / 382.1 MB Notification: Performance of SimCode: time 1.162e-06/0.3462, allocations: 0 / 0.5007 GB, free: 1.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2312/0.5774, allocations: 19.91 MB / 0.5201 GB, free: 85.02 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002412/0.5777, allocations: 281.6 kB / 0.5204 GB, free: 84.65 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.22/2.798, allocations: 1.406 kB / 0.5204 GB, free: 84.65 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Generation_WindGeneratorLine.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Generation.WindGeneratorLine.pipe 2>&1)