Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_IG,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_IG",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001238/0.001238, allocations: 173.3 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.319/1.319, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007318/0.0007317, allocations: 90.36 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1619/0.1619, allocations: 38.07 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003542, allocations: 16 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2209, allocations: 56.31 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_IG): time 0.006932/0.2279, allocations: 8.385 MB / 488.1 MB, free: 3.516 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007368/0.2353, allocations: 5.503 MB / 493.6 MB, free: 15.67 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001117/0.2365, allocations: 46.69 kB / 493.7 MB, free: 15.65 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009491/0.246, allocations: 4.713 MB / 498.4 MB, free: 14.4 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00255/0.2486, allocations: 0.8532 MB / 499.2 MB, free: 13.96 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.25, allocations: 493.8 kB / 499.7 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003836/0.2538, allocations: 3.038 MB / 0.491 GB, free: 11.93 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001474/0.2553, allocations: 0.898 MB / 0.4918 GB, free: 11.3 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.2564, allocations: 0.6374 MB / 0.4925 GB, free: 10.97 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.2578, allocations: 1.04 MB / 0.4935 GB, free: 10.44 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.2579, allocations: 53.66 kB / 0.4935 GB, free: 10.44 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007339/0.2587, allocations: 321.6 kB / 0.4938 GB, free: 10.3 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000613/0.2593, allocations: 0.6182 MB / 0.4944 GB, free: 9.934 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006776/0.26, allocations: 0.6165 MB / 0.495 GB, free: 9.535 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.2612, allocations: 1.296 MB / 0.4963 GB, free: 8.695 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2612, allocations: 1.281 kB / 0.4963 GB, free: 8.695 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2612, allocations: 4 kB / 0.4963 GB, free: 8.691 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.2612, allocations: 0 / 0.4963 GB, free: 8.691 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.002629/0.2639, allocations: 1.349 MB / 0.4976 GB, free: 7.676 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.2639, allocations: 13.56 kB / 0.4976 GB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002047/0.2641, allocations: 170.5 kB / 0.4978 GB, free: 7.535 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/0.2653, allocations: 219 kB / 0.498 GB, free: 7.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001701/0.267, allocations: 0.9231 MB / 0.4989 GB, free: 6.754 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.267, allocations: 71.45 kB / 0.499 GB, free: 6.723 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004238/0.2675, allocations: 191.2 kB / 0.4992 GB, free: 6.652 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/0.2697, allocations: 1.561 MB / 0.5007 GB, free: 5.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.251e-05/0.2698, allocations: 8 kB / 0.5007 GB, free: 5.152 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.2699, allocations: 39.92 kB / 0.5007 GB, free: 5.113 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005837/0.2705, allocations: 157.9 kB / 0.5009 GB, free: 4.957 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.2724, allocations: 1.245 MB / 0.5021 GB, free: 3.703 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007731/0.2802, allocations: 6.509 MB / 0.5085 GB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.2816, allocations: 0.9086 MB / 0.5093 GB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007453/0.2824, allocations: 0.5083 MB / 0.5098 GB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.948e-05/0.2825, allocations: 24.98 kB / 0.5099 GB, free: 11.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.2825, allocations: 47.44 kB / 0.5099 GB, free: 11.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=91): time 3.206e-06/0.2825, allocations: 3.938 kB / 0.5099 GB, free: 11.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=96): time 0.006237/0.2888, allocations: 3.699 MB / 0.5135 GB, free: 7.453 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.2888, allocations: 94.05 kB / 0.5136 GB, free: 7.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007954/0.2896, allocations: 0.7233 MB / 0.5143 GB, free: 6.609 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.749e-05/0.2897, allocations: 41.7 kB / 0.5144 GB, free: 6.562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003582/0.2901, allocations: 0.5496 MB / 0.5149 GB, free: 6.004 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002707/0.2904, allocations: 370.8 kB / 0.5153 GB, free: 5.637 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.576e-05/0.2904, allocations: 20 kB / 0.5153 GB, free: 5.617 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.2906, allocations: 418.8 kB / 0.5157 GB, free: 5.199 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008936/0.2915, allocations: 0.5647 MB / 0.5162 GB, free: 4.633 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001042/0.2926, allocations: 0.8853 MB / 0.5171 GB, free: 3.613 MB / 346.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.009086/0.3016, allocations: 3.902 MB / 0.5209 GB, free: 15.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.3017, allocations: 4 kB / 0.5209 GB, free: 15.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=164) (initialization): time 0.005542/0.3072, allocations: 2.736 MB / 0.5236 GB, free: 12.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3073, allocations: 8.625 kB / 0.5236 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.3073, allocations: 12 kB / 0.5236 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002765/0.3101, allocations: 1.15 MB / 0.5247 GB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008015/0.3109, allocations: 207.6 kB / 0.5249 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/0.3268, allocations: 11.21 MB / 0.5359 GB, free: 15.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009242/0.3277, allocations: 64.02 kB / 0.5359 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/0.3278, allocations: 48 kB / 0.536 GB, free: 15.83 MB / 378.7 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: rotor.A = 3.141592653589793 * rotor.R ^ 2.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (96): * Single equations (assignments): 94 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 17} * Non-linear torn systems: 1 {24 28} Notification: Performance of prepare postOptimizeDAE: time 0.000644/0.3285, allocations: 413.2 kB / 0.5364 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.3286, allocations: 102.8 kB / 0.5365 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00213/0.3308, allocations: 1.419 MB / 0.5378 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.3308, allocations: 8 kB / 0.5379 GB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.3308, allocations: 8 kB / 0.5379 GB, free: 13.83 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.3308, allocations: 11.86 kB / 0.5379 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004205/0.335, allocations: 2.676 MB / 0.5405 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.3351, allocations: 4 kB / 0.5405 GB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001479/0.3365, allocations: 275.6 kB / 0.5408 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001604/0.3367, allocations: 61.8 kB / 0.5408 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.058e-05/0.3368, allocations: 35.98 kB / 0.5408 GB, free: 10.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001795/0.3386, allocations: 2.634 MB / 0.5434 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3386, allocations: 0 / 0.5434 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002673/0.3413, allocations: 1.906 MB / 0.5453 GB, free: 5.762 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004457/0.3418, allocations: 259.8 kB / 0.5455 GB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001415/0.3419, allocations: 35.98 kB / 0.5456 GB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005367/0.3425, allocations: 51.89 kB / 0.5456 GB, free: 5.402 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002036/0.3427, allocations: 68.8 kB / 0.5457 GB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.574e-05/0.3428, allocations: 31.98 kB / 0.5457 GB, free: 5.305 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006154/0.3434, allocations: 495 kB / 0.5462 GB, free: 4.824 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3434, allocations: 0 / 0.5462 GB, free: 4.824 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001216/0.3446, allocations: 376 kB / 0.5465 GB, free: 4.457 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 25 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3],inertia.phi,inertia.w) * 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 (95): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002969/0.3476, allocations: 2.494 MB / 0.549 GB, free: 1.863 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003667/0.3513, allocations: 2.076 MB / 0.551 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3513, allocations: 0 / 0.551 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.3524, allocations: 0.7605 MB / 0.5517 GB, free: 14.97 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.3537, allocations: 204 kB / 0.5519 GB, free: 14.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01778/0.3715, allocations: 10.9 MB / 0.5626 GB, free: 3.512 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001289/0.3728, allocations: 1.298 MB / 0.5638 GB, free: 2.176 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007516/0.3736, allocations: 463.3 kB / 0.5643 GB, free: 1.723 MB / 394.7 MB Notification: Performance of SimCode: time 7.72e-07/0.3736, allocations: 4 kB / 0.5643 GB, free: 1.719 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.508/5.882, allocations: 27.49 MB / 0.5911 GB, free: 6.152 MB / 426.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_IG_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_Wind_WindTurbine_IG.fmu > PowerSystems_cpp_PowerSystems.Examples.Wind.WindTurbine_IG.pipe 2>&1)