Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 105.1 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 211.9 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.47/1.47, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1889/0.1889, allocations: 38.55 MB / 353.2 MB, free: 12.31 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Wind.WindTurbine_DFIG,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002025, allocations: 70.23 kB / 493.3 MB, free: 4.707 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3411, allocations: 62.47 MB / 0.5427 GB, free: 248 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_DFIG): time 0.01265/0.3537, allocations: 9.909 MB / 0.5524 GB, free: 8.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.3652, allocations: 5.731 MB / 0.558 GB, free: 4.316 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.3663, allocations: 71.62 kB / 0.558 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0139/0.3802, allocations: 6.088 MB / 0.564 GB, free: 14.44 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00338/0.3836, allocations: 1.085 MB / 0.565 GB, free: 13.35 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00204/0.3856, allocations: 0.6706 MB / 0.5657 GB, free: 12.68 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006044/0.3917, allocations: 3.314 MB / 0.5689 GB, free: 9.352 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.3933, allocations: 0.863 MB / 0.5698 GB, free: 8.461 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002209/0.3955, allocations: 1.101 MB / 0.5709 GB, free: 7.355 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002813/0.3983, allocations: 1.46 MB / 0.5723 GB, free: 5.891 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003336/0.3987, allocations: 144 kB / 0.5724 GB, free: 5.75 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001222/0.3999, allocations: 447.5 kB / 0.5728 GB, free: 5.312 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009924/0.4009, allocations: 0.8687 MB / 0.5737 GB, free: 4.441 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.4019, allocations: 0.7699 MB / 0.5744 GB, free: 3.668 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003158/0.4051, allocations: 2.304 MB / 0.5767 GB, free: 1.355 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.4051, allocations: 4 kB / 0.5767 GB, free: 1.352 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4051, allocations: 0 / 0.5767 GB, free: 1.352 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.617e-05/0.4052, allocations: 4 kB / 0.5767 GB, free: 1.348 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004553/0.4097, allocations: 2.031 MB / 0.5787 GB, free: 15.27 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.62e-05/0.4098, allocations: 11.98 kB / 0.5787 GB, free: 15.26 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.444e-05/0.4098, allocations: 42.81 kB / 0.5787 GB, free: 15.22 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000283/0.4101, allocations: 220 kB / 0.5789 GB, free: 14.99 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00176/0.4119, allocations: 347.2 kB / 0.5793 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/0.4144, allocations: 1.119 MB / 0.5804 GB, free: 13.49 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.4145, allocations: 98.62 kB / 0.5805 GB, free: 13.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005404/0.4151, allocations: 227.9 kB / 0.5807 GB, free: 13.17 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00344/0.4185, allocations: 2.103 MB / 0.5827 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.949e-05/0.4186, allocations: 11.95 kB / 0.5827 GB, free: 10.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.4187, allocations: 55.92 kB / 0.5828 GB, free: 10.9 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006659/0.4194, allocations: 186.7 kB / 0.583 GB, free: 10.71 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003014/0.4224, allocations: 1.709 MB / 0.5846 GB, free: 9 MB / 430.1 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.01313/0.4355, allocations: 7.152 MB / 0.5916 GB, free: 1.586 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002407/0.4379, allocations: 1.246 MB / 0.5928 GB, free: 340 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001092/0.439, allocations: 0.6243 MB / 0.5935 GB, free: 15.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.987e-05/0.4391, allocations: 17 kB / 0.5935 GB, free: 15.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.4392, allocations: 43.56 kB / 0.5935 GB, free: 15.64 MB / 446.1 MB Notification: Performance of pre-optimization done (n=127): time 4.548e-06/0.4392, allocations: 0 / 0.5935 GB, free: 15.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=138): time 0.009466/0.4486, allocations: 4.529 MB / 0.5979 GB, free: 11.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.499e-05/0.4487, allocations: 94.42 kB / 0.598 GB, free: 10.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.45, allocations: 0.9426 MB / 0.5989 GB, free: 10 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.4501, allocations: 49.7 kB / 0.599 GB, free: 9.949 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006295/0.4507, allocations: 0.7309 MB / 0.5997 GB, free: 9.207 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005243/0.4512, allocations: 0.5268 MB / 0.6002 GB, free: 8.676 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004981/0.4517, allocations: 307.5 kB / 0.6005 GB, free: 8.367 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4519, allocations: 301.1 kB / 0.6008 GB, free: 8.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001229/0.4531, allocations: 0.7066 MB / 0.6015 GB, free: 7.363 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.4547, allocations: 1.151 MB / 0.6026 GB, free: 6.023 MB / 446.1 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.01078/0.4655, allocations: 4.07 MB / 0.6066 GB, free: 1.781 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.951e-05/0.4655, allocations: 7.938 kB / 0.6066 GB, free: 1.773 MB / 446.1 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.007432/0.4729, allocations: 3.237 MB / 0.6098 GB, free: 14.51 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.609e-05/0.4729, allocations: 12.66 kB / 0.6098 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-05/0.473, allocations: 16 kB / 0.6098 GB, free: 14.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003228/0.4762, allocations: 1.181 MB / 0.6109 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.4776, allocations: 299.5 kB / 0.6112 GB, free: 12.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02093/0.4985, allocations: 14.53 MB / 0.6254 GB, free: 14.01 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.4998, allocations: 71.94 kB / 0.6255 GB, free: 13.94 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001696/0.4999, allocations: 72 kB / 0.6256 GB, free: 13.87 MB / 478.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization system: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 $DER.inertia.w = 0.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: 60 * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,15), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.0009226/0.5009, allocations: 0.4933 MB / 0.626 GB, free: 13.37 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002621/0.5011, allocations: 143.1 kB / 0.6262 GB, free: 13.23 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003506/0.5046, allocations: 1.792 MB / 0.6279 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.5047, allocations: 12 kB / 0.6279 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/0.5047, allocations: 4 kB / 0.6279 GB, free: 11.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.661e-05/0.5047, allocations: 7.969 kB / 0.6279 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006988/0.5117, allocations: 3.296 MB / 0.6312 GB, free: 7.992 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/0.5117, allocations: 7.938 kB / 0.6312 GB, free: 7.984 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001732/0.5134, allocations: 332 kB / 0.6315 GB, free: 7.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005702/0.514, allocations: 187.2 kB / 0.6317 GB, free: 7.465 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001485/0.5141, allocations: 47.97 kB / 0.6317 GB, free: 7.418 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00595/0.5201, allocations: 6.224 MB / 0.6378 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.5201, allocations: 8 kB / 0.6378 GB, free: 0.7266 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004445/0.5245, allocations: 2.5 MB / 0.6402 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007274/0.5253, allocations: 254.9 kB / 0.6405 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002138/0.5255, allocations: 43.98 kB / 0.6405 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007413/0.5262, allocations: 59.94 kB / 0.6406 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002768/0.5265, allocations: 105 kB / 0.6407 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.5266, allocations: 40 kB / 0.6407 GB, free: 13.66 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0009209/0.5275, allocations: 0.6244 MB / 0.6413 GB, free: 13.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5275, allocations: 96 / 0.6413 GB, free: 13.03 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001797/0.5293, allocations: 487.9 kB / 0.6418 GB, free: 12.55 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 26 (generator.i[3],generator.psi_s[1],generator.psi_s[2],generator.psi_rd[1],generator.psi_rq[1],generator.phiRotor,line.v[1,2],line.v[1,3],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,meterDC.pav,inverter2.vDC1) * 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 (129): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,10,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004701/0.534, allocations: 3.09 MB / 0.6448 GB, free: 9.371 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005041/0.5391, allocations: 2.637 MB / 0.6474 GB, free: 6.688 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/0.5391, allocations: 0 / 0.6474 GB, free: 6.688 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002037/0.5411, allocations: 1.19 MB / 0.6486 GB, free: 5.445 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.5427, allocations: 323.6 kB / 0.6489 GB, free: 5.129 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03093/0.5737, allocations: 17.11 MB / 0.6656 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001205/0.5749, allocations: 0.9355 MB / 0.6665 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001145/0.576, allocations: 399.6 kB / 0.6669 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009313/0.5769, allocations: 0.6165 MB / 0.6675 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of SimCode: time 8.32e-07/0.5769, allocations: 0 / 0.6675 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08737/0.6643, allocations: 40.27 MB / 0.7068 GB, free: 9.598 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.41/17.08, allocations: 15.94 kB / 0.7068 GB, free: 9.582 MB / 0.545 GB " [Timeout remaining time 643] (rm -f PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG_fmu --startTime=0 --stopTime=100 --stepSize=0.04 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Wind_WindTurbine_DFIG.fmu > PowerSystems_latest_PowerSystems.Examples.Wind.WindTurbine_DFIG.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.080885007046163] Failed to read output from testmodel.py, exit status != 0: 17.28196968906559 17.306572077 16.896704119 Calling exit ...